Modifying the Message Window Associated with a Menu Form

You can change the size and other parameters of the menu message window, just as with any window.

Designer: The Designer creates a separate message window for each form. This window can be modified inside the Designer. See the Designer User's Guide for more information. You can also modify the message window for a form in your code, by following the steps outlined below.

Code: To access the message window for a particular form, use:

mfmp->msg_wnp

By calling the appropriate window function for the menu message window, you can change the appearance of the window. For example, to change the message window attribute to LURGENT, call:

sw_att(LURGENT, mfmp->msg_wnp);

To make a two-line message window, call:

wn_mod(vs_rowq() - 3, 0, 2, vs_colq(), mfmp->msg_wnp);

If the option MNMSGAUTOPLACE is ON for the menu, the default, you must set it to OFF before the call to wn_mod(). The MNMSGAUTOPLACE option would over-ride your call to wn_mod(). See Chapter 22, "Using Menu Options and Features," for more information on MNMSGAUTOPLACE and how to set menu options.

You can change any of the window settings listed in Chapter 25, "Changing the Appearance of Windows."


Home Contents Previous Next