select many graphic objects with mouse

I used to select the objects(i.e lines) with shift and click on it. I like to find a way to select many objects on the axes with mouse and a selection rectangle like windows file selection for example. can please anyone help?

3 Kommentare

Susan
Susan am 14 Nov. 2011
I am also trying to do this but having trouble. I can select one object at a time with buttondwnfcn but can't figure out how to select multiple objects, like with a selection window defined by the mouse. Hope to see an answer here soon.
Doug Hull
Doug Hull am 14 Nov. 2011
In what context is this occurring? A regular line plot, during "plot edit" mode, etc...
Walter Roberson
Walter Roberson am 14 Nov. 2011
If the selected area in the rectangle happens to include uicontrol or uitable or text objects, should those be included in the selected objects? Or should it only be a particular variety of objects at any one time, according a parameter passed in, such as lines or buttons ?
If an object in the area has Hittest turned off, then should it be immune from selection, or would that be deemed too confusing because the user would not be able to select something that is obviously "right there!" ?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Juan
Juan am 16 Nov. 2011

0 Stimmen

Ok .. I have found the solution.. it is rbbox. @Susan read the Documentation about it. if you still don't know how, I 'll write my code here.

Weitere Antworten (1)

Lenka
Lenka am 30 Mär. 2014

0 Stimmen

I have the same problem. Please can you public your code?

1 Kommentar

Juan
Juan am 9 Apr. 2014
i see this already now. Wher you still need the code i can search for it tomorow.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 5 Nov. 2011

Kommentiert:

am 9 Apr. 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by