<div dir="ltr"><div>thank you for your reply, I tried this example but I have not found a solution to recover the parameters : x, y, length and width of the widgetborder.</div><div>I actually need these parameters (x,y,h,w)because I have a method to detect a region of interest with the mouse handling and need x, y, h, w of the widgetboder.</div>
<div><br></div><div style>have you an idea please ?thank you</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/20 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, May 20, 2013 at 2:08 PM, Cary lorey<br>
<<a href="mailto:developement.unity@gmail.com">developement.unity@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I use vtkContext2D class to draw a rectangle, I want to draw the rectangle<br>
> with the mouse ( not pass the parameters(x,y,w,h) in the code) and retrieve<br>
> each change the new coordinates (x, y) as well as the length and width of<br>
> the rectangle to redraw.<br>
><br>
> Can you help me please!<br>
><br>
> thank you in advance.<br>
<br>
</div></div>As this is a VTK question, it should be sent to the vtk-users mailing<br>
list (rather than ITK): <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
However, I believe this is what you're looking for:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/Border" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/Border</a><br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>