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.

Syntax

D = new_griddlg( CGrid_object )

D = new_griddlg( CGrid_object, sWndTitle )

D = new_griddlg( CGrid_object, sWndTitle, sWndCaption )

bullet.gif    Opens the CGrid CGrid_object into a modal dialog window

bullet.gif    sTitle is an optional title for the grid dialog.

bullet.gif    sCaption is an optional caption to appear above the grid in the dialog.

bullet.gif    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.

Example

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:

G = new_grid(GridParams)

- create CGrid with properties from GridParams table

-- open the grid G in a dialog window

 

D = new_griddlg(G)

-- open the CGrid into a modeless dialog D.

G = new_gridctrl(D)

-- return the grid control for the grid dialog

Related Topics

CGrid class

CGridView class

CGridCtrl class

attachlist_panegridctrl

new_gridctrl

new_gridview

new_grid

new_griddlgmodal

GridParams table


Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.