Consultor Eletrônico



Kbase P26080: Dynamics containers cannot be fixed size
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   09/06/2005
Status: Unverified

FACT(s) (Environment):

Dynamics 2.0A
Dynamics 2.1A
Dynamics 2.1B
OpenEdge 10.0x

SYMPTOM(s):

Dynamic container is always resizable.

ResizeHorizontal and ResizeVertical properties for container have no effect regardless of their value.

Dynamics: It should be possible for containers to be non resizable.

The container properties ResizeHorizontal and ResizeVertical do not work. They do not seem to have any effect regardless of their value. The dynamic container is always resizable.

CAUSE:

This is a known issue being investigated by Development

FIX:

Get the handle of the window and set its max height and width to its min height and width values.
Typically this would be done in an override on initializeObject, like the following example.

PROCEDURE initializeObject:

DEFINE VARIABLE hWindow AS HANDLE NO-UNDO.
DEFINE VARIABLE hWindowFrameHandle AS HANDLE NO-UNDO.

RUN SUPER.

/* window is not resizable */
{get WindowFrameHandle hWindowFrameHandle}.
IF VALID-HANDLE(hWindowFrameHandle) THEN
ASSIGN
hWindow = hWindowFrameHandle:WINDOW
hWindow:MAX-WIDTH = hWindow:MIN-WIDTH
hWindow:MAX-HEIGHT = hWindow:MIN-HEIGHT
.

END PROCEDURE.