Initialization and Display of the Menu Form
During the initialization and display stage, the following occur:
- nThe menu window is displayed on the screen.
- nThe background boxes, lines, and text are written in the window.
- nThe menu fields are displayed.
- nThe menu field on which processing is to start is displayed with a highlight bar in the active field attribute. This allows the user to know what field the cursor is currently on. By default, the active field attribute is LMNACT, which is black on cyan in color modes and reverse in monochrome modes.
- nAll other fields are set to the skip field attribute or the inactive field attribute. By default, the skip attribute is LMNUNAVAIL, which appears as black on white on color monitors and normal on monochrome monitors; the default for the inactive attribute is LMNINACT, which appears as cyan on blue on color monitors and high intensity on monochrome monitors.
- nThe physical cursor is hidden.
- nThe activate window function is called, if you installed one.
- nThe begin-form function is called, if you installed one.
- nThe begin-field function for the selected field is called, if you installed one.
- nIf the form is virtual and the selected field is not visible, it is scrolled into view.
- nIf you installed a scrolling function for a virtual menu, and the menu scrolls to make the selected field visible, your scrolling function is called.
- nIf the active menu field has an autoselect menu attached, the sub-menu for the highlighted menu field is also displayed.
The form is now ready for the user to make selections.