Displays a menuinside the current window whose choices are given by the elements of a string array and which returns the index of the user's response.
XPos (X Window System only) The position on the x-axis of the display device where the menu is to be placed.
YPos (X Window System only) The position on the y-axis of the display device where the menu is to be placed.
To use, select a menu item with the mouse and click the left mouse button.
Yes
and No
and entitled Do you wish to continue?:
i = WMENU(['Do you wish to continue?', 'Yes',$ 'No'], Title=0, Init=1)
Yes
initially selected. The result is as follows:
1 |
if the user clicks on Yes.
|
2 |
if the user clicks on No .
|
-1 | if the user clicks the left mouse button outside the menu. |