CGridView:GetGridCtrl
The GetGridCtrl method returns the CGridCtrl object internal to the CGridView object. This method allows CGridCtrl methods to be used on the CGridView class.
CGridCtrl_obj = CGridView:GetGridCtrl() |
On
success, the internal CGridCtrl object is returned.
On
failure, nil is
returned.
Assume that the Mira desktop shows several grid view windows. The following script attaches one of the view windows and returns a CGridCtrl attached to the view window's grid control. It prints the name of the view window and the name of the grid control's parent window, which should be identical:
|
-- attach a grid window from the desktop |
|
-- if not successful, exit the script |
|
-- return the internal grid control |
|
|
|
-- print the title of the attached window |
|
-- print the title of the attached window |
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.