|
new_gridctrl
The new_gridctrl function returns a
CGridCtrl object for the grid control in a
CGridView window or modeless
CGrid dialog. Note that this method
cannot attach to a modal CGrid Dialog.
Syntax
G = new_gridctrl()
G = new_gridctrl( CGridCtrl_object )
G = new_gridctrl( CGridView_window_object )
G = new_gridctrl( CGrid_dialog_object )
CGridCtrl_object is an existing CGridCtrl object to
be copied.
CGrid_dialog_object is a modeless dialog
containing a
CGrid. and opened using
new_griddlg.
CGridView_window_object is a
CGridView object attached to a grid window.
Returns a new
CGridCtrl object or
nil on failure.
Example
The following script attaches a
CGridView object to a Mira desktop window and
returns its
CGridCtrl:
|
V = attach_gridview()
|
|
|
G = new_gridctrl(V)
|
|
The following script creates a
CGrid object using a
GridParams table for initialization, fills it with
data, opens it into a modeless dialog and returns its
CGridCtrl:
|
Grid = new_grid(GridParams)
|
|
|
|
|
|
D = new_griddlg(Grid)
|
|
|
G = new_gridctrl(D)
|
|
Related Topics
CGridCtrl class
CGridView class
CGrid class
attachlist_panegridctrl
new_gridview
new_grid
new_griddlg
new_griddlgmodal
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|