wmnx
Description
The wmnx macro is similar to wmn, but has a much more extensive range of menus that can be invoked.
• PTC ALD pull down menus
• Any string number defined menu
• Context sensitive menus: the right mouse button invokes a menu relating to the current operating mode, e.g. if in graphics mode the menu will only include only graphics options. Use the * (asterisk) macro to assign macros to the right mouse button.
• Menus based on user defined string numbers : use the * (asterisk) macro to assign these string numbers
Example 337. Assign the Edit menu to the right mouse key
*1000100 wmnx 1700
Example 338. Invoke a menu defined by the user in the suser2.3ad file
This is an example of using the wmnx macro to invoke a user defined menu in the suser2.3ad file. The syntax first defines a menu in the strings file: this same syntax can be used to create your own menus.
"ts;x","1500"
$&My Processing Instructions|||@<>$&Text Properties|||1501<>
$&Paragraph Properties|||1502<>
"ts;x","1501"
$&--Text Properties--|||@<>$&Red Text|||@<?tic=?pt><>$&Blue Text
|||@<?tic=?pt><>
"ts;x","1502"
$&--Paragraph Properties--|||@<>$&Top space 10pt|||@<?tpt=10pt>
<>$&Top space 20pt|||@<?tpt=20pt><>
To invoke the menu execute the following in the macro bar:
wmnx 1500
The following menu will be displayed:
Syntax
wmnx system mode:n string number:n
system mode | The system code for the mode in which you want this menu to be invoked: 000-099 | Window system | 100-199 | Document mode | 200-299 | Page/frame mode | 300-399 | Text mode | 400-499 | Graphics mode |
| The code is always be preceded by 1000 in the syntax (see example). |
|
string number | The string number of the menu or dialog box you wish to invoke |
Related Links