CGrid:new
The new method constructs a new instance of a CGridobject which can be opened into a dialog window. The CGrid object may also be constructed using the new_grid function.
When a new CGrid object is created, the grid dimensions in columns and rows and other parameters are initialized using the GridParams table. See the Example below.
G = CGrid:new()
Creates a CGrid with the grid properties initialized to default values.
G = CGrid:new( GridParams )
Creates a new CGrid object with grid properties initialized to the properties in a GridParams table.
The following script creates a CGrid object using the GridParams table to initialize the grid:
|
-- define the grid properties |
|
|
|
-- create 12 columns |
|
|
|
|
|
|
|
-- create 2 top heading rows |
|
-- each top heading row has a height of 16 |
|
|
|
-- create CGrid with properties in params |
-- assemble the grid |
|
|
-- open the final grid into a modeless dialog |
CGrid class, new_grid, GridParams table
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.