Window_SetState()

Examples


The Window_SetState() function sets the visual state for a window.

Syntax

Window_SetState(window window_name, state)

Parameters

window window_name – The window whose state is being set.

state – An integer indicating the window state. The value corresponds to one of the following constants:

[spacer]

Constant

Description

WINDOW_STATE_MAXIMIZED

Sets the window to its maximized state.

WINDOW_STATE_MINIMIZED

Sets the window to its minimized state.

WINDOW_STATE_NORMAL

Restores the window from the minimized or maximized state.


Return value

A boolean. True indicates the window state was set, while false indicates it was not.


Documentation Feedback