How to Make a Panel Non-Modal

It is possible to use both modal and non-modal forms, menus and windows in the same application. The following objects can be made non-modal:

The following objects cannot be non-modal:

A window option, MOU_MODAL, controls whether or not a particular panel is non-modal. This window option, like most window options, can be set for a standard window used to display information or a memory file; it can also be set for the windows associated with data entry forms, menus, and choice lists. If the option is ON, the panel (whether it is a menu, data form, or window) is modal. By default, all windows created in the Designer or in code are modal windows. For more information on setting window options, see Chapter 24, "Writing to Windows."

There are two ways of creating non-modal applications. The first, preferred method, is to design the application, from the very beginning, to be non-modal. The second method is to modify an existing application. However, there is much more to modifying an existing application than simply setting the non-modal window option correctly!


Home Contents Previous Next