Setting the Field to be Active When a Menu Is Displayed

When a top-level menu is first displayed, the menu field that is first highlighted is the one specified in the call to mn_proc(). When sub-menus under the top-level menu are displayed, the default is for the first field (field 0) to be highlighted.

Designer: Setting the field to be active cannot be done within the Designer. You must do it in your code.

Code: If you want another menu field highlighted, call the set menu entry number function, smn_entrynum():

void smn_entrynum(field_num, mfmp)
 
int field_num;
/* Field number to be highlight
*/
MFORMPTR mfmp;
/* Pointer to menu
*/

Caution: Do not use smn_entrynum() on the menu that is currently active.


Home Contents Previous Next