Code: Specifying a Sub-Form Pointer in the mnf_def() Call

If you choose to specify a sub-form or sub-menu in your mnf_def() call, the form must already be in memory. In other words, you must have either defined the sub-form or sub-menu in your code with fm_def() or mn_def(), or read the form from the Designer library, before you call mnf_def() to define the menu field.

You can get a pointer to the sub-form or sub-menu from the menu field structure member sub_formp. You can reference this structure member as follows:

mfldp->sub_formp

Your action function should not free a sub-form or sub-menu that was specified in the mnf_def() call.


Home Contents Previous Next