Button and Menu UI Macros
You must set the
In order to use the UI macros, you must set the
It can be difficult to communicate to the reader that they need to press a button.
They can’t tell if you are saying “OK” or they are supposed to look for a button labeled OK.
It’s all about getting the semantics right.
btn macro to the rescue!
Press the btn:[OK] button when you are finished. Select a file in the file navigator and click btn:[Open].
The result of Example 1 is displayed below.
Press the OK button when you are finished.
Select a file in the file navigator and click Open.
Trying to explain how to select a menu item can be a pain.
menu macro, the symbols do the work.
The instructions in Example 2 appear below.
To save the file, select.
Selectto reset the zoom level to the default setting.
If the menu has more than one item, it can be expressed using a shorthand. In the shorthand syntax:
each item is separated by a greater than sign (
>) with spaces on either side
the whole expression must be enclosed in double quotes (
The text of the item itself may contain spaces.
The shorthand syntax can be escaped by preceding the opening double quote with a backslash character.