SLIDER
PLBCMP GUI Only
The SLIDER instruction defines an object variable for a slider bar. Slider bars represent a position along a continuum using a slider and optionally tick marks. During program execution, the slider can be moved to the desired position by dragging it with the mouse or clicking the mouse on the bar. To use the keyboard to move the slider, press the arrow keys, the PageUp or PageDown keys, or the Home and End keys. To define a SLIDER, use one of the following statement formats:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Data Label.
%
Optional. Denotes the item as being GLOBAL.
arraysize
Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.
^
Optional. Denotes the item as being a POINTER.
target
Required. The name of a previously defined data item of the same type.
Flags Affected: NONE
Note the following:
Multi-dimension arrays are supported up to a maximum of fourteen dimensions.
The ^ denotes Pointer Variable.
Although a SLIDER may be defined as Global, it is DESTROYed during a CHAIN instruction.
The event modifier value returned by EVENTINFO is set to a value of thirty-two (at MIN) when the Home key is pressed and set to a value of sixty-four (at MAX) when the Endkey is pressed on a SLIDER object.
See Also: Example Code, Object Definitions, Object Output Instructions
![]() |