<div dir="ltr">Hi,<div><br></div><div>(Aside of being in the dev list),</div><div><br></div><div>If you are up to work with java/c++ you can take a look at  scilab/modules/gui/src/java/org/scilab/modules/gui/editor/EntityPicker.java, there you can find examples to select various graphics entities given a window and a click position. Extending a click to a selection box wouldnt require too much work.</div><div><br></div><div>If you prefer to use xclick(), an idea to make it would be:</div><div><br></div><div>create a macro which ask for 2 clicks with xclick(), since xclick() gives you the position in the current axes you can simple traverse through the graphics objects tree, from a gcf() or gca() checking which ones are crossing the box. The down side from this idea is that actually drawing the box would be tricky.</div><div><br></div><div>My best advice for the box is to use rubberbox() macro, it ask for a click  to start drawing the box and after the 2nd click it end the box and returns the first point and the width/height of the box. With this information you can easily traverse the objects tree and check for crossing.</div><div><br></div><div>Best.</div><div><br></div><div>Caio SOUZA</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 16, 2016 at 6:36 AM, Clément David <span dir="ltr"><<a href="mailto:clement.david@scilab-enterprises.com" target="_blank">clement.david@scilab-enterprises.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Erik,<br>
<br>
The dev ML is used for Scilab "development" questions for Scilab internal features so you might<br>
probably prefer to ask the user ML <<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>>.<br>
<br>
My 2cents to help you, that's possible to implement using xclick() or axes click handler (from a<br>
user point of view).<br>
<br>
If you prefer to dive into the scilab code and use some Java/C++ skills it might be possible to<br>
implement this feature as a specific editor : you are on the right ML :) !<br>
<br>
Thanks,<br>
<br>
–<br>
<span class="HOEnZb"><font color="#888888">Clément<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
Le jeudi 16 juin 2016 à 06:36 +0000, Erik Bjørklund a écrit :<br>
> Hi,<br>
> I have several plots in one figure, and each plot contains several curves. <br>
> I would like to incorporate an interactive feature. This feature should use <br>
> a selection box to select curves crossing into the box. Then the feature <br>
> should give me the handles of all the polylines selected.<br>
> <br>
> Any ideas?<br>
> <br>
> Best<br>
> <br>
> Erik<br>
> <br>
> _______________________________________________<br>
> dev mailing list<br>
> <a href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a><br>
> <a href="http://lists.scilab.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/dev</a><br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/dev</a><br>
</div></div></blockquote></div><br></div>