Reputation: 141
I have a problem with listbox in matlab gui. I need to select more then one item(option in the list). Is there any possilitiy to select two items (second with ctrl) ?
I would appreciate for any help please.
Upvotes: 2
Views: 139
Reputation: 979
If you have a list named list_box
, then all you need to do is set min and max parameters.
set(list_box,'Max', 3, 'Min', 0);
Here, digit 3 indicates the maximum number of elements which can be selected, 0 - the minimum. And yes, another element can be selected by holding the ctrl key.
Upvotes: 2