Jump to content

Futurebasic/Language/Reference/maxwindow

From Wikibooks, open books for an open world

MAXWINDOW

[edit | edit source]

Syntax

[edit | edit source]

MAXWINDOW h,v

Description

[edit | edit source]

Sets a limit on how large the user can make a window by dragging its "grow box." After MAXWINDOW is executed, the user will not be able to drag the window's size wider than h pixels nor taller than v pixels (these dimensions refer to the window's "content region"; they don't include the "structure region" (frame) of the window). The MAXWINDOW statement applies to all currently open windows and all subsequently opened windows, until another MAXWINDOW statement is executed.

MAXWINDOW does not apply to windows which don't have a grow box. Also, it does not limit the dimensions of a window which is resized by clicking its "zoom box" (see the SETZOOM statement to learn how to do this).

If there is any currently open window (with a grow box) whose dimension(s) exceed h and/or v, MAXWINDOW will not shrink it immediately. The window will shrink the next time the user clicks on its grow box.

Note: If you need to apply different size limits to each of several open windows, then you will need to execute MAXWINDOWeach time such a window becomes active. In your dialog-event handling function, watch for the _wndActivate event, then execute MAXWINDOW with the appropriate parameters depending on which window has become active. See the DIALOG function for more information.

See Also

[edit | edit source]

MINWINDOW; DIALOG function; SETZOOM