CGrid:AddMenuExecute
The AddMenuExecute method adds an "Execute Script" command to the pop-up menu for the modeless CGrid Dialog. When this command is execute from the pop-up menu, it opens the file browser for selecting and executing a selected script. This feature is available only with the modeless grid dialog created using new_griddlg.
CGrid:AddMenuExecute()
The following script adds an "Execute Script" command and two other script commands to the pop-up menu of the modeless grid dialog. 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 |
|
-- open the modeless grid dialog |
CGrid class, AddMenu, DeleteMenus, new_griddlg
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.