SelectedTab
property for PowerScript controls
Applies to
Tab controls
Description
The SelectedTab property specifies the index number of the selected
tab page in the tab control. As the user selects tabs in the Tab control,
the value of SelectedTab changes to reflect the currently selected
tab.
Usage
In a painter
To specify the selected tab:
-
Enter a number in the Selected Tab field on the General page of
the control’s Properties view.The number should be in the range 1 to N where N is the number
of tab pages in the tab control.
In scripts
The SelectedTab property takes an integer value. The default value
is 1, and the integer must be in the range 1 to N, where N is the number
of tab pages.
The following line sets the index number of the selected tab page in
the Tab control tab_1 to 3:
|
1 |
tab_1.SelectedTab = 3 |