ArborX


wmnx

Longname: w indow m e n us e x tended   Open the Documentation Legend
Released: not available 
Created: not available 
Last modified: 6.52a 
See also: wmn

Summary
The wmnx macro is similar to wmn, but can also be used for extended menus. It enables you to invoke 3B2's pull down menus or any string number defined menu. From 3B2 v6.03 the right mouse button will invoke a menu relating to the current 3B2 mode, i.e. if in graphics mode the menu will include only graphics options. You can assign string numbers of your own choice, by using the * macro and the following syntax
Example extract

The example below will assign the Edit menu to the right mouse key:

 *1000100 wmnx 1700

Syntax (SVNNA)
system mode:n

The system code for the mode in which you want this menu to be invoked. Always preceded by 1000. Current modes available are:

000-099  Window system
100-199  Document mode
200-299  Page/frame mode
300-399  Text mode
400-499  Graphics mode
string number:n

The string number of the menu or dialogue box you wish to invoke.

Example

This is an example of using the wmnx macro to invoke a user defined menu in the suser2.3ad file. The wmnx macro enables you to use extended menus, for example menus that include tabs. Consider the following syntax that defines a menu in the strings file suser2.3ad file. This same syntax can be used to create your own menus. For more information see the Menus chapter.

 "ts;x","1500" 1
 $&My Processing Instructions|||@<>$&Text Properties|||1501<>$&Paragraph Properties|||1502<> 2
 "ts;x","1501" 3
 $&--Text Properties--|||@<>$&Red Text|||@<?tic=?pt><>$&Blue Text|||@<?tic=?pt><> 4
 "ts;x","1502" 5
 $&--Paragraph Properties--|||@<>$&Top space 10pt|||@<?tpt=10pt><>$&Top space 20pt|||@<?tpt=20pt><> 6

To invoke the menu execute the following in the macro bar:

 wmnx 1500

The menu will be invoked:


Document created on 08-Feb-2003 (revision 1)