SLIDER


PLBCMP GUI Only

square.png Properties

square.png Events

square.png Methods

square.png Instructions

 

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:

 

(1)

[label]

SLIDER

[%]

(2)

[label]

SLIDER

(arraysize)

(3)

[label]

SLIDER

^

(4)

[label]

SLIDER

^,{target}

(5)

[label]

SLIDER

^(arraysize)

(6)

[label]

SLIDER

^(arraysize),({target}),...,({target})

 

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:

  1. Multi-dimension arrays are supported up to a maximum of fourteen dimensions.

  2. The ^ denotes Pointer Variable.

  3. Although a SLIDER may be defined as Global, it is DESTROYed during a CHAIN instruction.

  4. 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



PL/B Language Reference SHAPE SPLITTER