Special note on syntax: Each of the following parameters must be followed by a literal comma, and the command must be terminated with a chr(127).
? tab(-10, AG_MENU) opcode, menuid, mnutxt, mstate, mtype, cmd, func, mstatus {,dlgid}
? tab(-10, AG_MENU) opcode, mdfspec, mstate, mstatus {,dlgid}
The function AG_MENU (21) is the equivalent of the AUI_MENU or MX_WINMNU 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_AUTOMOUSE |
124 |
Edit ... AutoMouse |
|
IDM_BEVELING |
122 |
Settings...Beveling |
|
IDM_COLORS |
113 |
Settings...Colors |
|
IDM_COPY |
115 |
Edit...Copy |
|
IDM_DEFAULTS |
112 |
File...Default Settings |
|
IDM_DLGSIZING |
134 |
Settings...Dialog Sizing |
|
IDM_EXIT |
111 |
File...Exit |
|
IDM_FONTGRID |
144 |
Settings...Font..Grid |
|
IDM_FONTGUI |
132 |
Settings...Font...GUI |
|
IDM_FONTSYS |
123 |
Settings...Font...System |
|
IDM_KBDLOCK |
117 |
Settings...Keyboard Lock |
|
IDM_LOAD |
107 |
File...Load Settings |
|
IDM_MISC |
130 |
Settings...Misc Settings |
|
IDM_PASTE |
116 |
Edit...Paste |
|
IDM_PRINTS |
110 |
File...Print Screen |
|
IDM_PVPREF |
142 |
Settings...Preview Preferences |
|
IDM_RESET |
131 |
Settings...Reset |
|
IDM_RESET |
131 |
Settings...Reset |
|
IDM_SAVE |
108 |
File...Save Settings |
|
IDM_SAVEAS |
109 |
File...Save Settings As |
|
IDM_SCHEDULE |
106 |
Settings...Scheduling |