Consultor Eletrônico



Kbase P50616: How to change window size after changing windows screen reso
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   29/10/2003
Status: Unverified

GOAL:

How to change window size after changing windows screen resolution.

GOAL:

How to maximize a window to a new screen resolution after changing the windows resolution settings. For example starting a window with a windows screen resolution of 800x600 and then maximizing it. Then changing the windows resolution setting to 1024x768, the window is no longer maximized, and it cannot be maximized by using the maximize button.

FIX:

In the window WINDOW-MAXIMIZED trigger, check the session WIDTH-PIXELS and HEIGHT-PIXELS attributes and then adjust the window HEIGHT-PIXELS and WIDTH-PIXELS attributes accordingly. i.e.

ON WINDOW-MAXIMIZED OF C-Win
DO:
ASSIGN
{&WINDOW-NAME}:WIDTH-PIXELS = SESSION:WIDTH-PIXELS
{&WINDOW-NAME}:HEIGHT-PIXELS = SESSION:HEIGHT-PIXELS.
END.