Setting the Active Menu Field for a Higher Level Menu

If an action function is going to cause a return to a level higher than the one from which it is selected, you may wish to change the field that is active upon return to the higher level menu. If you do not change the entry field, the field that was active when the sub-menu was called will be the active field.

The active field upon menu entry can be set by:

void smn_entrynum(item_num, mfmp)
 
int item_num;
/* Number of item to make active
*/
MFORMPTR mfmp;
/* Pointer to menu form    
*/

Caution: Do not use this function on the menu form that is currently active. You can use sfm_nextitem() in this case.

This function is only useful for action functions that are called within a branching menu.


Home Contents Previous Next