You can enable or disable certain mouse functions on a window by window basis, by setting options for the windows. For instance, you may want the user to be able to resize some windows, but not others, or to be able to drag selected windows.
The following options can be set on any window using , or you can set the options in the Designer when the window is created. For more information about using sw_opt(), see Chapter 24, "Writing to Windows."
| MOU_RESIZE | If ON, the user can resize the window. |
| MOU_DRAG | If ON, the user can drag the window to a new location on the screen. |
| MOU_MODQUIT | If ON, the user can cause the processing function to quit by clicking the mouse outside of the current modal data form, menu form, choice list, or window. |
| MOU_MODAL | If ON, the user must complete processing of this window before processing any other. For example, if MOU_MODAL is on for a form, the user must exit or quit the form before he or she is allowed to click on another form, menu or window to make it active. Caution: Making a window non-modal is not as simple as toggling this option. Changes must be made in the way the form or window is processed. See Chapter 30, "Differences in Non-Modal Form Processing," for more information. |
Note: To resize or drag a window, the user must be able to click the mouse on the border of the window. Therefore, you must put a border on any form, menu or window that you want the user to resize or drag.