System Projects Reference > The Library Controls Include Project > Use the Library Controls > Slider Library Control
Slider Library Control

The Slider genie has the following parameters:

Parameter

Description

Slider Name

A unique name used to identify the control genie within a page.

Length

The pixel height of the control at runtime. Leave the size of the genie at design time as 100 pixels, as it will be automatically calculated at runtime.

Minimum Offset

The min. offset (in pixels) the slider can be dragged to. The acceptable range is -4000 to 4000.

Maximum Offset

The max. offset (in pixels) the slider can be dragged to. The acceptable range is -4000 to 4000.

Docked Offset (Optional)

The offset (in pixels) the slider is moved to when it is docked. If this is not set, it is defaulted to -4000.
The acceptable range is -4000 to 4000.

Dockable

Whether the middle thumb button will appear at runtime, so that the user can click on it to move the slider to the docked offset.

Update on Drag

Whether the position of the scroll bar and the contents of the associated control genie is updated while the thumb is being dragged.

Hidden

Determines whether to hide the genie

Scan Delay (Optional)

The number of page scan delay before the genie is initialized at runtime This can be set to different number on different control genies to stacker their initialization order. If this is not set, it defaults to 0.

Initialize

Callback function that is called when the control initializes The callback function should return either TRUE (1) for success or FALSE (0) for unsuccessful. By default,if the user specified function can not initialize successfully, the control genie will retry the function a few times before giving up. This callback only supports the #Name keyword which represents the name assigned to the control genie.

Callback

Callback function to be called when the position of the slider is updated. No particular return value is expected from this function, and it supports the following keywords in its argument list:

#Name = name assigned to the genie

#Offset = Offset of the slider position relative to its initial position

Right Mouse

Callback function to be called when the user click the right mouse button on the scroll bar

See Also

Published June 2018