DlgGroupBox.SetProperties

DlgGroupBox.SetProperties ( 

number ControlID,

table  Properties )

Description

Sets the properties of a group box control on the current screen.

Note: This action will only work if called from a screen's events and if the named control is on the current screen.

Parameters

ControlID

(number) The numeric ID of the group box control whose properties you want to set.

Properties

(table) A table containing the group box control properties indexed by the following keys:

KEY

TYPE

DESCRIPTION

Enabled

boolean

Enable or disable the control. Setting Enabled to true will enable the control and false will disable it. For example, tb.Enabled = true or {Enabled=true}.

Text

string

The text you want to appear in the control. For example, tb.Text = "Sample Text" or {Text="Sample Text"}.

Visible

boolean

Sets the visibility of the control. Setting it to true means the control will be visible and false means it will be invisible. For example, tb.Visible=true or {Visible=true}.

Note: All changes will be made immediately and only the properties that you want to change need to be set.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions