Changing the Default Menu Options

The default form options for menu forms are as follows:

FLDCHSELECT | MNTOPESCAPE | MNREDISPLAY | FMWRAP | MNMSGAUTOPLACE

Designer: You can change the default form options for menu forms by modifying the Designer configuration file. See the Designer User's Guide for more information.

Code: To change the defaults, call the set environment menu options function, se_mnopt():

void se_mnopt(options)

long options;        /* Options or'ed together            */

All options not listed are set to OFF. Specify 0L to turn all options OFF.

For example, the following call sets the FLDCHSELECT, MNCONFIRM, and FMWRAP form options ON as the defaults:

se_mnopt(FLDCHSELECT | MNCONFIRM | FMWRAP);

All menu forms defined in code after this call will have these defaults.


Home Contents Previous Next