MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Especificaciones Pagina 97

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 216
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 96
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:
Vista de pagina 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 215 216

Comentarios a estos manuales

Sin comentarios