Making a Checkmark Menu Field
Checkmarks can be used several ways:
- nYou can have the user toggle the display of a checkmark simply by selecting the menu field. This is useful when allowing the user to set switches, for instance, printer configurations. To gather the user's settings, you can read the status of each menu field (ON or OFF).
- nYou can write an action function that does some task and, before it returns, toggles the display of the checkmark. This can be used to give the user a visual indication of which tasks have already been done.
Checkmarks appear to the left of the menu field if there is room on the menu. If there is no room, the checkmark overwrites the first character of the field. The checkmark is displayed using the same attribute as the field (active attribute if current, inactive attribute if not, skip attribute if unavailable).
By default, the display of checkmarks is not enabled. To learn more about using checkmarks in menus, see the information presented later in this chapter.