CGrid:DeleteMenus
The DeleteMenus method removes all script commands from the pop-up menu of the modeless grid dialog.
CGrid:DeleteMenus()
The following script removes all script commands, including "Execute Script" from the grid dialog's pop-up menu. The second parameter in AddMenu() should be the full file path to the script. Since thee are normally very long strings, they are shown here in an abbreviated form.
|
-- create a new CGrid object |
-- assemble the grid |
|
|
-- add an "Execute Script command |
|
-- add the command "Name 1" to the menu |
|
-- add the command "Name 1" to the menu |
-- do other things to the CGrid object |
|
|
-- remove all menu commands |
|
-- open the modeless grid dialog |
CGrid class, AddMenu, new_griddlg
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.