|
On 4 Sep., 14:58, "David " <d...@bigcompany.com> wrote:
> "No Spam" <n...@sogetthis.com> wrote in message <g9okcd$831
>
> $...@fred.mathworks.com>...> heiko_m...@hotmail.com wrote in message
> > <5eeb36ef-710a-4c8b-b25e-
>
> 2b49631e1...@x16g2000prn.googlegroups.com>...
>
>
>
>
>
> > > I wonder how multi-selectable popupmenus would be
> used.
>
> > Well, not that I think this would be feasible in Matlab,
> but:
>
> > - click on the first line or dropdwon button to open the
> popup
> > - ctrl-click at an entry -> entry gets selected, but
> menue
> > does not close (opposed to normal-click, which selects
> the
> > one entry and closes the menue immediately)
> > - ctrl-click on other entrys
> > - to close, click on the first line, dropdown-button or
> any
> > other UI element except the list entrys.
> > - closed menue shows one (first?) selected entry
> and '...'
> > to show that multiple lines are selected
>
> > I probably will do a mixed variant. Using dynamically
> > populated dropdown menues for my items and an add button
> to
> > collect them in a listbox. This involves more clicks to
> get
> > a 'collection' of items, but it's the only way I can
> think
> > of at the moment.
>
> you might be able to use a multi-select listbox and
> dynamically resize it based on mouse over events or
> something funky like that... when the mouse moves over it
> make it bigger, when the mouse moves out shrink it back to
> normal? =A0just an idea, haven't actually tried this one but
> would be interested in what you come up with.
Hi again.
The difference between a popup menu and a dynamically growing list box
is the behaviour when located near the figure's edge. The popup menu
will be displayed above the figure's edge, but the listbox would be
cut at the edge, probably showing not all of its content.
MatLab's flexibility to do such thing is not enough. I suggest looking
for Java controls that will do what you want. I use Java controls in
my GUIs for a long time now. In Java, if not existing yet, it is also
possible to code something yourself. This way you could, for instance,
extend the functionality of a popup so that ctrl+click selects single
lines, shift+click selects adjacent lines, and maybe alt+click closes
the popup and returns the selected items, which also would minimize
the number of clicks.
Anyway, I still don't believe that for multiple selection lists a
popup is a good idea. Other applications always use some kind of list
box for this, either embedded in the figure or as a form of dialog.
But I, too, am curious what you come up with.
Greetings,
Heiko
|