|
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > MLGrid Control > MLGrid Control Commands > MLGrid_Sheet_Add |
Description
Add new sheet to a MLGrid
Syntax
n = MLGrid_Sheet_Add(hGrid, SheetName [, NewRowSetup [, NewColSetup]])
Returns
Number: the new sheet number
Parameters
Name |
Type |
Optional |
Meaning |
hGrid |
Number |
No |
handle to grid control, handle returned by CONTROL ADD MLGRID ... |
SheetName |
String |
No |
Name of the sheet that will be visible in sheet tab |
NewRowSetup |
Number |
Yes |
If %FALSE or omitted, current sheet rows setup will be copied into the new sheet. Default is %FALSE |
NewColSetup |
Number |
Yes |
If %FALSE or omitted, current sheet columns setup will be copied into the new sheet. Default is %FALSE |
Remarks
Adding a sheet will always show the tab bar. You will have to hide it, if desired, using MLGrid_Sheet_Tabs_Visible
Restrictions
See also
Examples