<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235508</link>
    <title>MATLAB Central Newsreader - How to design multiselectable lists</title>
    <description>Feed for thread: How to design multiselectable lists</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 04 Sep 2008 08:59:02 -0400</pubDate>
      <title>How to design multiselectable lists</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235508#598633</link>
      <author>No Spam</author>
      <description>Hi, &lt;br&gt;
&lt;br&gt;
I have several list in which the user has to choose one or&lt;br&gt;
more items.&lt;br&gt;
&lt;br&gt;
It's done with popupmenues by now, which fits great into the&lt;br&gt;
GUI, but doesnt allow for multiple selected items.&lt;br&gt;
&lt;br&gt;
I know multiselect can be done by listboxes, but these take&lt;br&gt;
up a lot of space. I would have to make the listboxes adapt&lt;br&gt;
in size to the number of contained items (if possible) to&lt;br&gt;
save some space.&lt;br&gt;
&lt;br&gt;
I would really like to here some comments on this matter.&lt;br&gt;
It's rather a design question than a technical problem.&lt;br&gt;
Although a solution on how to enable multiselect on&lt;br&gt;
popupmenues would be ideal. &lt;br&gt;
&lt;br&gt;
Thanks in advance...</description>
    </item>
    <item>
      <pubDate>Thu, 04 Sep 2008 12:14:09 -0400</pubDate>
      <title>Re: How to design multiselectable lists</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235508#598658</link>
      <author>heiko_marx@hotmail.com</author>
      <description>On 4 Sep., 10:59, &quot;No Spam&quot; &amp;lt;n...@sogetthis.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have several list in which the user has to choose one or&lt;br&gt;
&amp;gt; more items.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It's done with popupmenues by now, which fits great into the&lt;br&gt;
&amp;gt; GUI, but doesnt allow for multiple selected items.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I know multiselect can be done by listboxes, but these take&lt;br&gt;
&amp;gt; up a lot of space. I would have to make the listboxes adapt&lt;br&gt;
&amp;gt; in size to the number of contained items (if possible) to&lt;br&gt;
&amp;gt; save some space.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I would really like to here some comments on this matter.&lt;br&gt;
&amp;gt; It's rather a design question than a technical problem.&lt;br&gt;
&amp;gt; Although a solution on how to enable multiselect on&lt;br&gt;
&amp;gt; popupmenues would be ideal.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks in advance...&lt;br&gt;
&lt;br&gt;
Hi.&lt;br&gt;
&lt;br&gt;
I wonder how multi-selectable popupmenus would be used. If you need to&lt;br&gt;
select more than one item, you need to display many items to have a&lt;br&gt;
good overview when selecting. But if a popupmenu is clicked on, it&lt;br&gt;
closes. You would either have to have a separate OK button to press&lt;br&gt;
when finished, or the multi selection would be limited to adjacent&lt;br&gt;
lines selection.&lt;br&gt;
The first case includes three steps: popup the list, make the&lt;br&gt;
selection, push ok. This can also be achieved by a separate window&lt;br&gt;
popping up when choosing to select something, maybe even with MatLabs&lt;br&gt;
listdialog.&lt;br&gt;
Another idea would be, as you said, to use a listbox with small&lt;br&gt;
dimensions. Maybe with only three lines, so that the selection status&lt;br&gt;
for adjacent entries is visible.&lt;br&gt;
&lt;br&gt;
What else?&lt;br&gt;
Heiko</description>
    </item>
    <item>
      <pubDate>Thu, 04 Sep 2008 12:30:05 -0400</pubDate>
      <title>Re: How to design multiselectable lists</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235508#598662</link>
      <author>No Spam</author>
      <description>heiko_marx@hotmail.com wrote in message&lt;br&gt;
&amp;lt;5eeb36ef-710a-4c8b-b25e-2b49631e11e9@x16g2000prn.googlegroups.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; I wonder how multi-selectable popupmenus would be used. &lt;br&gt;
&lt;br&gt;
Well, not that I think this would be feasible in Matlab, but:&lt;br&gt;
&lt;br&gt;
- click on the first line or dropdwon button to open the popup&lt;br&gt;
- ctrl-click at an entry -&amp;gt; entry gets selected, but menue&lt;br&gt;
does not close (opposed to normal-click, which selects the&lt;br&gt;
one entry and closes the menue immediately)&lt;br&gt;
- ctrl-click on other entrys&lt;br&gt;
- to close, click on the first line, dropdown-button or any&lt;br&gt;
other UI element except the list entrys.&lt;br&gt;
- closed menue shows one (first?) selected entry and '...'&lt;br&gt;
to show that multiple lines are selected&lt;br&gt;
&lt;br&gt;
I probably will do a mixed variant. Using dynamically&lt;br&gt;
populated dropdown menues for my items and an add button to&lt;br&gt;
collect them in a listbox. This involves more clicks to get&lt;br&gt;
a 'collection' of items, but it's the only way I can think&lt;br&gt;
of at the moment. </description>
    </item>
    <item>
      <pubDate>Thu, 04 Sep 2008 12:58:01 -0400</pubDate>
      <title>Re: How to design multiselectable lists</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235508#598667</link>
      <author>David </author>
      <description>&quot;No Spam&quot; &amp;lt;news@sogetthis.com&amp;gt; wrote in message &amp;lt;g9okcd$831&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; heiko_marx@hotmail.com wrote in message&lt;br&gt;
&amp;gt; &amp;lt;5eeb36ef-710a-4c8b-b25e-&lt;br&gt;
2b49631e11e9@x16g2000prn.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I wonder how multi-selectable popupmenus would be &lt;br&gt;
used. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Well, not that I think this would be feasible in Matlab, &lt;br&gt;
but:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; - click on the first line or dropdwon button to open the &lt;br&gt;
popup&lt;br&gt;
&amp;gt; - ctrl-click at an entry -&amp;gt; entry gets selected, but &lt;br&gt;
menue&lt;br&gt;
&amp;gt; does not close (opposed to normal-click, which selects &lt;br&gt;
the&lt;br&gt;
&amp;gt; one entry and closes the menue immediately)&lt;br&gt;
&amp;gt; - ctrl-click on other entrys&lt;br&gt;
&amp;gt; - to close, click on the first line, dropdown-button or &lt;br&gt;
any&lt;br&gt;
&amp;gt; other UI element except the list entrys.&lt;br&gt;
&amp;gt; - closed menue shows one (first?) selected entry &lt;br&gt;
and '...'&lt;br&gt;
&amp;gt; to show that multiple lines are selected&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I probably will do a mixed variant. Using dynamically&lt;br&gt;
&amp;gt; populated dropdown menues for my items and an add button &lt;br&gt;
to&lt;br&gt;
&amp;gt; collect them in a listbox. This involves more clicks to &lt;br&gt;
get&lt;br&gt;
&amp;gt; a 'collection' of items, but it's the only way I can &lt;br&gt;
think&lt;br&gt;
&amp;gt; of at the moment. &lt;br&gt;
&lt;br&gt;
you might be able to use a multi-select listbox and &lt;br&gt;
dynamically resize it based on mouse over events or &lt;br&gt;
something funky like that... when the mouse moves over it &lt;br&gt;
make it bigger, when the mouse moves out shrink it back to &lt;br&gt;
normal?  just an idea, haven't actually tried this one but &lt;br&gt;
would be interested in what you come up with.</description>
    </item>
    <item>
      <pubDate>Fri, 05 Sep 2008 05:51:14 -0400</pubDate>
      <title>Re: How to design multiselectable lists</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235508#598805</link>
      <author>heiko_marx@hotmail.com</author>
      <description>On 4 Sep., 14:58, &quot;David &quot; &amp;lt;d...@bigcompany.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &quot;No Spam&quot; &amp;lt;n...@sogetthis.com&amp;gt; wrote in message &amp;lt;g9okcd$831&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; $...@fred.mathworks.com&amp;gt;...&amp;gt; heiko_m...@hotmail.com wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;5eeb36ef-710a-4c8b-b25e-&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 2b49631e1...@x16g2000prn.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I wonder how multi-selectable popupmenus would be&lt;br&gt;
&amp;gt; used.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Well, not that I think this would be feasible in Matlab,&lt;br&gt;
&amp;gt; but:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; - click on the first line or dropdwon button to open the&lt;br&gt;
&amp;gt; popup&lt;br&gt;
&amp;gt; &amp;gt; - ctrl-click at an entry -&amp;gt; entry gets selected, but&lt;br&gt;
&amp;gt; menue&lt;br&gt;
&amp;gt; &amp;gt; does not close (opposed to normal-click, which selects&lt;br&gt;
&amp;gt; the&lt;br&gt;
&amp;gt; &amp;gt; one entry and closes the menue immediately)&lt;br&gt;
&amp;gt; &amp;gt; - ctrl-click on other entrys&lt;br&gt;
&amp;gt; &amp;gt; - to close, click on the first line, dropdown-button or&lt;br&gt;
&amp;gt; any&lt;br&gt;
&amp;gt; &amp;gt; other UI element except the list entrys.&lt;br&gt;
&amp;gt; &amp;gt; - closed menue shows one (first?) selected entry&lt;br&gt;
&amp;gt; and '...'&lt;br&gt;
&amp;gt; &amp;gt; to show that multiple lines are selected&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I probably will do a mixed variant. Using dynamically&lt;br&gt;
&amp;gt; &amp;gt; populated dropdown menues for my items and an add button&lt;br&gt;
&amp;gt; to&lt;br&gt;
&amp;gt; &amp;gt; collect them in a listbox. This involves more clicks to&lt;br&gt;
&amp;gt; get&lt;br&gt;
&amp;gt; &amp;gt; a 'collection' of items, but it's the only way I can&lt;br&gt;
&amp;gt; think&lt;br&gt;
&amp;gt; &amp;gt; of at the moment.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; you might be able to use a multi-select listbox and&lt;br&gt;
&amp;gt; dynamically resize it based on mouse over events or&lt;br&gt;
&amp;gt; something funky like that... when the mouse moves over it&lt;br&gt;
&amp;gt; make it bigger, when the mouse moves out shrink it back to&lt;br&gt;
&amp;gt; normal? =A0just an idea, haven't actually tried this one but&lt;br&gt;
&amp;gt; would be interested in what you come up with.&lt;br&gt;
&lt;br&gt;
Hi again.&lt;br&gt;
&lt;br&gt;
The difference between a popup menu and a dynamically growing list box&lt;br&gt;
is the behaviour when located near the figure's edge. The popup menu&lt;br&gt;
will be displayed above the figure's edge, but the listbox would be&lt;br&gt;
cut at the edge, probably showing not all of its content.&lt;br&gt;
&lt;br&gt;
MatLab's flexibility to do such thing is not enough. I suggest looking&lt;br&gt;
for Java controls that will do what you want. I use Java controls in&lt;br&gt;
my GUIs for a long time now. In Java, if not existing yet, it is also&lt;br&gt;
possible to code something yourself. This way you could, for instance,&lt;br&gt;
extend the functionality of a popup so that ctrl+click selects single&lt;br&gt;
lines, shift+click selects adjacent lines, and maybe alt+click closes&lt;br&gt;
the popup and returns the selected items, which also would minimize&lt;br&gt;
the number of clicks.&lt;br&gt;
&lt;br&gt;
Anyway, I still don't believe that for multiple selection lists a&lt;br&gt;
popup is a good idea. Other applications always use some kind of list&lt;br&gt;
box for this, either embedded in the figure or as a form of dialog.&lt;br&gt;
But I, too, am curious what you come up with.&lt;br&gt;
&lt;br&gt;
Greetings,&lt;br&gt;
Heiko</description>
    </item>
  </channel>
</rss>

