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

GroupBox.Width

The GroupBox Control Object that is returned by the AddGroupBox function has a Width property. The Width property represents the width setting of the Group Box.

Syntax

ControlObject.Width = Value

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

Description

Sets the width of the Group Box.

Arguments

Value {integer}

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

Returns

Integer

Example:

GroupBox1.Width = 10

Where:

  • GroupBox1 is the name of the variable that stores the GroupBox Control Object returned by the AddGroupBox function
  • 10 is the width setting for the Group Box (10% of the usable area of the Form).

ClearSCADA 2015 R2