Consultor Eletrônico



Kbase P93553: Container starts as badly resized when it was previously closed as maximized
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/12/2005
Status: Unverified

FACT(s) (Environment):

Dynamics 2.1A

SYMPTOM(s):

Object badly resized at startup.

Objects at the bottom are partially hidden

Toolbar at the bottom is hidden

Container was closed in maximized state

CAUSE:

This situation can happen when the container has been closed in WINDOW-MAXIMIZED state. When restarted, it is indeed rebuilt in WINDOW-MAXIMIZED state as expected, however the size of resizable objects is not calculated correctly so object at the bottom can be hidden.

FIX:

A work around is to implement the following in containr.p/initializeObject just after SUPER (or in customcontainr.p):
[...]
RUN SUPER.

/* If window is maximized at startup the height of the window is calculated
incorrectly resulting the bottom objects being hidden behind the window
taskbar.
To prevent this we rerun the resizeWindow to set it correctly */
IF hContainerHandle:WINDOW-STATE = WINDOW-MAXIMIZED
THEN RUN resizeWindow IN TARGET-PROCEDURE NO-ERROR.
[...]