BUG DESCRIPTION:
----------------
1) Problem with multiple selection (by "set")
2) Problem with default value of "relief"
Using example 1 from help page "uicontrol":
f=figure();
// create a figure
h=uicontrol(f,'style','listbox', ...
'position', [10 10 150 160]);
// create a listbox
set(h, 'string', "item 1|item 2|item3");
// fill the list
set(h, 'value', [1 3]);
// select item 1 and 3 in the list
1) Only item 3 is selected (and not 1 and 3 as the comment says)
but h.value contains [1,3]
=> Lack of consistency
I suspect it comes from the value of "max"
set(h, "max", 2);
set(h, 'value', [1 3]);
=> No change !
set(h, "max", 2);
set(h, 'value', 0);
set(h, 'value', [1 3]);
=> OK
Note:
f=figure();
// create a figure
h=uicontrol(f,'style','listbox', ...
'position', [10 10 150 160]);
// create a listbox
set(h, 'string', "item 1|item 2|item3");
// fill the list
set(h, 'max', 2);
set(h, 'value', [1 3]);
// select item 1 and 3 in the list
=> OK
2) set(h, "relief", "flat")
=> The line around the listbox disappears
so the default value is not "flat"
(although the help page says it is => see uicontrol, "relief")
OTHER INFORMATION:
------------------
windows7, 32 bits