Specifications

Setting Component Properties — The Property Inspector
3-45
The Value property contains the index into the list of strings that corresponds
to the selected item. If the user selects multiple items, then
Value is a vector of
indices.
By default, the first item in the list is highlighted when the list box is first
displayed. If you do not want any item highlighted, then set the
Value property
to empty,
[]. This works only when multiple selection is enabled.
The
ListboxTop property defines which string in the list displays as the top
most item when the list box is not large enough to display all list entries.
ListboxTop is an index into the array of strings defined by the String property
and must have a value between 1 and the number of strings. Noninteger values
are fixed to the next lowest integer.
Selection Type. MATLAB sets Selection Type to normal on the first click and to
open on the second click. The callback can query the Selection Type property
to determine if it was a single- or double-click.
Setting Slider Properties
The following sections describe how to set properties for a slider.
Slider Orientation. You can orient the slider either horizontally or vertically by
setting the relative width and height of the
Position property:
Horizontal slider — Width is greater than height.
Vertical slider — Height is greater than width.
For example, these settings create a horizontal slider.