Please enable JavaScript to view this site.

A-Shell Consolidated Reference

Reviewed and revised December 2023

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

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_PRINTS

110

File..Print Screen

IDM_EXIT

111

File..Exit

IDM_AUTOMOUSE

124

Edit..AutoMouse

IDM_COPY

115

Edit..Copy

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

IDM_MISC

130

Settings..Misc Settings

IDM_DLGSIZING

134

Settings..Dialog Sizing

IDM_PVPREF

142

Settings..Preview Preferences

IDM_KBDLOCK

117

Settings..Keyboard Lock

IDM_RESET

131

Settings..Reset

IDM_SCROLLBACK

160

Settings..Scrollback

 

Response

none