Futurebasic/Language/Reference/setzoom

Revised
June 12, 2000 (Release 3)

Description
When you create a window that has a zoom box, FB assigns a default "zoom rectangle" for the window. The zoom rectangle is the screen rectangle that the window occupies after the user clicks the zoom box. Clicking the zoom box a second time causes the window to change back to its previous rectangle. By default, the zoom rectangle takes up most of the screen.

Use the  statement to assign a new zoom rectangle for the window, specified by , where   and   are diagonally opposite corners of the rectangle, in global screen coordinates. The next time the user clicks on the window's zoom box, and your program subsequently executes, the window's size and location will change to fit the specified zoom rectangle.

If you omit the  parameter,   resets the zoom rectangle to the default zoom rectangle.

has no effect on windows that don't have a zoom box.

Note
You can use the  function to determine when the user has clicked on the window's zoom box.

The size of the zoom rectangle is not limited by the  or  statement.

Do not use  unless the window specified by   has already been created (using the   statement).