You are here: Core Reference > Coding > Scripting > Slider.Width

Slider.Width

The Slider Control Object that is returned by the AddSlider function has a Width property. The Width property represents the width setting of the Slider

Syntax

ControlObject.Width = Value

Where ControlObject is the name of the variable (declared in your script) that is used to store the Slider Control Object that is returned by the AddSlider function.

Description

Sets the width of the Slider.

Arguments

Value {integer}

Defines the width setting of the Slider. This is based on the average character width, so 1 is approximately 1 character wide.

Returns

Integer

Example:

Slider.Width = 150

Where:

  • Slider is the name of the variable that stores the Slider Control Object returned by the AddSlider function
  • 150 is the width setting for the slider (approximately 150 characters wide).

ClearSCADA 2015 R2