Consultor Eletrônico



Kbase P72661: How to programmatically resize a window to full screen?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/11/2007
Status: Unverified

GOAL:

How to programmatically resize a window to full screen?

GOAL:

How to programmatically maximize a window to whole screen?

GOAL:

How to programmatically minimize a window?

FACT(s) (Environment):

You can change the state of a window programmatically by setting the WINDOW-STATE attribute. This attribute is an integer and accept 1, 2 and 3 as value:

1) WINDOW-MAXIMIZED - The window has been maximized to fill the entire display.
2) WINDOW-MINIMIZED - The window has been minimized (iconified).
3) WINDOW-NORMAL - The window is in the "restored" state. Initially, this refers to a state that is neither maximized nor minimized. However, setting WINDOW-STATE to WINDOW-NORMAL restores the window to its previous state, which may be the maximized, minimized, or neither.

Note that you can change a window to its maximized state on Windows only.