new_griddlg
The new_griddlg function opens a CGrid object into a modeless grid dialog. Alternatively, use new_griddlgmodal to open the grid into a modal dialog. For a descripion of modeless versus modal grid dialogs, see the CGrid class description.
D = new_griddlg( CGrid_object )
D = new_griddlg( CGrid_object, sWndTitle )
D = new_griddlg( CGrid_object, sWndTitle, sWndCaption )
Opens the CGrid
CGrid_object into a modal dialog
window
sTitle is
an optional title for the grid dialog.
sCaption is
an optional caption to appear above the grid in the dialog.
Returns a CGridDlg object or nil on failure. The only use of the CGridDlg object is to test for nil or pass it to new_gridctrl to get the
CGridCtrl object.
The following script creates a CGrid object using the GridParams table to initialize the grid, fills it with data, and then opens it into a modeless dialog:
|
- create CGrid with properties from GridParams table |
-- open the grid G in a dialog window |
|
|
-- open the CGrid into a modeless dialog D. |
|
-- return the grid control for the grid dialog |
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.