CGridView:SetTab
The SetTab method sets the label for the tab of an existing grid sheet. Tabs are displayed in the tab area below the grid sheets. However, if the grid contains only 1 sheet, the tab row is not displayed. See the sample grid in AddSheet.
CGridView:SetTab( nSheet, strLabel )
Where nSheet, is the index of the tab, starting at 1 for the first sheet.
strLabel is the string label to assign to the tab.
The following script assigns a new name to the tab for sheet 2:
|
-- Create a CGridView object |
-- create 2 sheets for the grid ... |
|
|
-- check that 2 or more sheets exist |
|
-- set the tab label for sheet 2 |
|
|
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.