Happens while the user is resizing a window. By handling this event, you can limit the minimum and maximum size of the window.


Args

ARG(2) is a MINMAXINFO struct that contains the default maximized position and dimensions, and the default minimum and maximum sizes. You can override these defaults by changing the values of this struct. But you must use CONVERTDATA to convert the C struct to a REXX stem variable, and then after making any changes, use CONVERTDATA to convert it back to a C struct.


Notes

/* Convert C struct to REXX stem variable named MySizes. */
CONVERTDATA(ARG(2), "MySizes", "struct MINMAXINFO")

/* MySizes.3 = maximized width.
 * MySizes.4 = maximized height.
 * MySizes.5 = position of the left side of the maximized window.
 * MySizes.6 = position of the top of the maximized window.
 * MySizes.7 = minimum width.
 * MySizes.8 = minimum height.
 * MySizes.9 = maximum width.
 * MySizes.10 = maximum height.
 */

/* Set minimum width to 200, and minimum height to 100. */
MySizes.7 = 200
MySizes.8 = 100

/* Convert MySizes back to the C struct. */
CONVERTDATA(ARG(2), "MySizes", "struct MINMAXINFO", "FROM")
Note: You must FUNCDEF a MINMAXINFO struct at the start of your script:
FUNCDEF("MINMAXINFO", "32, 32, 32, 32, 32, 32, 32, 32, 32, 32")
See also SIZE, SIZING..