MAXIMIZE WINDOW

4D - Documentation   Français   English   German   Spanish   Japanese   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.0.5


MAXIMIZE WINDOW {(window)}

ParameterTypeDescription
windowWinRefWindow reference number or if omitted,
all current process frontmost
windows (Windows) or current
process frontmost window (Mac OS)

Description

The MAXIMIZE WINDOW command triggers the expansion of the window whose reference number was passed in window. If this parameter is omitted, the effect is the same but is applied to all the frontmost windows of the current process (Windows) or to the frontmost window of the current process (Mac OS).

This command has the same effect as a click on the zoom box of a 4D application window:

On Windows

The size of the window is increased to match the current size of the application window. The maximized window is set to be the frontmost window. If you do not pass the window parameter, the command is applied to all the application windows.

Windows zoom box

On Mac OS

The size of the window is increased to match the size of its contents. If you do not pass the window parameter, the command is applied to the frontmost window of the current process.

Zoom box on Mac OS

Notes:

This command only applies to windows that contain a zoom box. If the window type does not include it, the command does nothing. For more information, please refer to the Window Types section.

On Mac OS, the zoom is based on the contents of the window; so, the command must be called in a context where the contents of the window are defined, for example in a form method. Otherwise, the command does nothing.

If the window is already maximized, the command does nothing.

MAXIMIZE WINDOW sets a window to its "maximum" size. If the window is actually a form whose size was defined in the form properties, the window size is set to those values.

A later click on the zoom box of the window or a call to the MINIMIZE WINDOW command reduces the window to its initial size. On Windows, a call to MINIMIZE WINDOW without parameters sets the size of all application windows to their initial sizes.

Example

This example sets the window size of your form to full screen when it is opened. To achieve this, the following code is placed in the form method:

      ` In the Form method

   MAXIMIZE WINDOW

See Also

MINIMIZE WINDOW.


4D - Documentation   Français   English   German   Spanish   Japanese   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next