|
CGrid:DeleteMenus
The DeleteMenus method removes all script
commands from the pop-up menu of the modeless grid dialog.
Syntax
CGrid:DeleteMenus()
Example
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.
|
G = new_grid()
|
|
|
|
|
|
G:AddMenuExecute()
|
|
|
G:AddMenu("Name 1",
C:\\...\\script1.lua")
|
|
|
G:AddMenu("Name 2",
C:\\...\\script2.lua")
|
|
|
|
|
|
G:DeleteMenus()
|
|
|
D = new_griddlg(G)
|
|
Related Topics
CGrid class
AddMenu
new_griddlg
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|