Well, <div><br></div><div>This is what I have done. I subclassed contourWidget, and added one memder, ID for it. And in the mouse click event, i added shift click to pick the object. i.e. i maintain a separate list to store ids of selected widgets. And on shift click, id of that object is pushed on to this list. In this way, multiple widgets can also be picked. </div>
<div><br></div><div>Then when i delete, i traverse the list of picked ids, and delete those widgets.</div><div><br></div><div>Hope this may help.</div><div><br></div><div>Good luck</div><div><br></div><div>Thanks</div><div>
<br></div><div>Regards</div><div><br></div><div>Rakesh Patil<br><br><div class="gmail_quote">On Tue, Sep 21, 2010 at 10:59 PM, Leonardo M. Ramé <span dir="ltr">&lt;<a href="mailto:l.rame@griensu.com">l.rame@griensu.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I also don&#39;t know how to pick a widget...<br>
<font color="#888888"><br>
--<br>
</font><div class="im">Leonardo M. Ramé<br>
<a href="http://leonardorame.blogspot.com" target="_blank">http://leonardorame.blogspot.com</a><br>
<br>
</div><div><div></div><div class="h5">On 2010-09-21 22:26:39 +0530, rakesh patil wrote:<br>
&gt; Well,<br>
&gt;<br>
&gt; In order to delete a widget, one has to pick it. How do you implement<br>
&gt; picking? Once picking is done, deleting is easy. Coz, if there are multiple<br>
&gt; distance wizards, key events of each n every distance widgets will be<br>
&gt; executed and all of them will be deleted..<br>
&gt;<br>
&gt; Do you have any other technique to pick a widget? or atleast indicate that<br>
&gt; among set of widgets, this widget i need to delete.<br>
&gt;<br>
&gt; Regards<br>
&gt; Rakesh Patil<br>
<br>
</div></div></blockquote></div><br></div>