Specifications

Setting Component Properties — The Property Inspector
3-47
The SliderStep property controls the amount the slider Value property
changes when you click the mouse on the arrow button or on the slider trough.
Specify
SliderStep as a two-element vector. The default, [0.01 0.10], provides
a 1 percent change for clicks on an arrow and a 10 percent change for clicks in
the trough. The actual step size is a function of the slider step and the slider
range.
Designing a Slider. Suppose you want to create a slider with the following
behavior:
Slider range = 5 to 8
Arrow step size = 0.4
Trough step size = 1
Initial value = 6.5
Set the following slider properties using the Property Inspector.
X denotes the
first element of the
SliderStep vector. Y denotes the second element.
SliderStep, X .133
SliderStep, Y .333
Max 8
Min 5
Value 6.5
SliderStep
is a percentage of the slider range, which is 3. In this example,
SliderStep for the arrow step size is 0.4/3 = 0.1333. SliderStep for the
trough step size is
1/3 = 0.3333.
Setting Pop-Up Menu Properties
Pop-up menus open to display a list of choices when users click the arrow.
Adding Items to the Pop-Up Menu. The String property contains the list of strings
displayed in the pop-up menu. Use the Property Inspector to add items to the
pop-up menu by typing one per line in the
String edit box: