Edit Menu Control

? tab(-10, AG_MENU) opcode, menuid, mnutxt, mstate, mtype, cmd, func, mstatus {,dlgid}; chr(127);

? tab(-10, AG_MENU) opcode, mdfspec, mstate, mstatus {,dlgid}; chr(127);

AG_MENU (21) is the equivalent of the AUI_MENU calls. It is used internally for forwarding those functions from A-Shell/UNIX to ATE, although it also can be used directly with an application to add or delete menu items. It also may be used to invoke built-in menu commands, using this format:  

? tab(-10, AG_MENU); ID; chr(127);

Where ID is the ID value of the menu command, from the following list:  

Symbol

Value

Description

IDM_ABOUT

101

Help..About

IDM_LOAD

107

File..Load Settings

IDM_SAVE

108

File..Save Settings

IDM_SAVEAS

109

File..Save Settings As

IDM_DEFAULTS

112

File..Default Settings

IDM_EXIT

111

File..Exit [216]

IDM_PRINTS

110

File..Print Screen [216][226]

IDM_AUTOMOUSE

124

Edit..AutoMouse [211]

IDM_COPY

115

Edit..Copy [211]

IDM_PASTE

116

Edit..Paste

IDM_SCHEDULE

106

Settings..Scheduling

IDM_BEVELING

122

Settings..Beveling

IDM_COLORS

113

Settings..Colors

IDM_FONTSYS

123

Settings..Font..System

IDM_FONTGUI

132

Settings..Font..GUI

IDM_FONTGRID

144

Settings..Font..Grid [211]

IDM_MISC

130

Settings..Misc Settings

IDM_DLGSIZING

134

Settings..Dialog Sizing

IDM_PVPREF

142

Settings..Preview Preferences [211]

IDM_KBDLOCK

117

Settings..Keyboard Lock

 

Note: The table above is also used is AUI_MENU.