You are here: Core Reference > Coding > Scripting > Form.AddSlider

Form.AddSlider

The Form.AddSlider function allows you to add a slider control to the Form

Syntax

Form.AddSlider(X, Y, Width, Value)

Description

Adds a slider control to a Form.

Arguments

X {integer}

Represents the horizontal position of the slider on the Form—the position on the 'X-Axis'.

 

Y {integer}

Represents the vertical position of the slider on the Form—the position on the 'Y-Axis'.

 

Width {integer}

Defines the width of the slider.

 

Value {integer}

Defines the initial position of the slider when the slider is first displayed.

Returns

Slider Control Object

Slider Control Objects have common Control Object Properties as well as their own specific properties that can be used in the script (see Slider Properties).

Example:

Set Slider = Form.AddSlider( 1, 1, 50, 0)

This creates a slider that is positioned at 1 on the X-Axis, 1 on the Y-Axis, is 50 pixels wide and has 0 as its initial value (the slider is positioned at 0 when it is first displayed).

See also:

Slider Properties.


ClearSCADA 2015 R2