new_gridview
The new_gridview function is a non-class version of the CGridView:new method which creates and returns a new CGridView object. This object is an interface to a grid window on the Mira desktop that can be manipulated using methods in the CGridView class.
When a new CGridView object is created, rather than attached to an existing window, the grid dimensions in columns and rows and other parameters are normally initialized using the GridParams table. See the Example below.
G = new_gridview( strName )
Creates a CGridView with window title strName and grid properties initialized to default values.
G = new_gridview( strName, GridParams )
Creates a new CGridView object with window title strName and grid properties initialized to the properties in a GridParams table.
On failure, nil is returned.
The following script creates a CGridView 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 CGridView with properties in params |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.