windowState
Type: Integer
Availability: Read or write at any time
The windowState property of the Form class contains the visual state of a form window at run time.
The settings of the windowState property are listed in the following table.
| Form Class Constant | Value | Description |
|---|---|---|
| WindowState_Normal | 0 | Normal (the default) |
| WindowState_Minimized | 1 | Shrunk to an icon |
| WindowState_Maximized | 2 | Enlarged to maximum size |
Minimizing a form causes a resize event. The size of the form and its controls reflects the minimized state.
The following example shows the use of the windowState property.
resize() updating;
begin
if windowState <> WindowState_Minimized then // restore after minimize
caption := "CD Player";
endif;
end;
