Changing the Menu Selection Key

Designer: The Menu Selection key must be changed in your code.

Code: In the menu event table MNETP, the event function km_select() selects the menu, that is, calls the action function associated with the menu field. The key that this function is assigned to is called the Menu Selection key. The default assignment is KEY_ENTER.

Caution: If you change the assignment of the Menu Selection key (the key assigned to the function km_select()), you must tell the system what the new key assignment is with the function se_mnselectkey():

void se_mnselectkey(keycode)

UCHAR keycode;        /* Keycode of new selection key        */

Vermont Views automatically pops up a sub-menu if the menu form option MNAUTOSELECT is ON. This is done by posting an event which simulates a Menu Selection key press. If you change the Menu Selection key, you must notify the system in order for this process to work.


Home Contents Previous Next