Passing Control to the User

After the choice list menu is defined, you call a function to process the choice list. Choice list processing includes steps to display the choice list, pass control to the user for selecting an item, and then remove the choice list from the screen.

After the choice list is displayed, control is passed to the user. The user can scroll through the choice list items. Key assignments are defined in the choice list event table.

The user selects an item by positioning the highlight bar, which is displayed with LCLACT and is the width of the window, over the item and pressing KEY_ENTER (this is the default key assignment). The number and text of the item selected by the user is saved in the choice list structure and is available for you to read.

The user can always quit the choice list without selecting an item by hitting KEY_ESC.


Home Contents Previous Next