Consultor Eletrônico



Kbase P43716: 4GL/ABL: How to force a Progress Window widget to always start at the same screen position?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/25/2008
Status: Verified

GOAL:

4GL/ABL: How to force a Progress Window widget to always start at the same screen position?

GOAL:

How to ensure that a Progress application window always start at the same screen coordinates?

GOAL:

How to modify or override the default starting position of a Progress Windows?

GOAL:

How to modify the X and Y attributes of a Progress Window widget?

GOAL:

How to control the ROW and COL attributes of a Progress Window widget?

FACT(s) (Environment):

Windows
Progress 9.x
OpenEdge 10.x

FIX:

To ensure that a Progress Window widget always starts up at the same screen position, modify its X and Y attributes or its ROW and COL attributes as desired. For example:
In a "normal" nonsmart Progress Window, insert one of the following two statements in the Window's "Main Block" section immediately before the "RUN enable_UI" statement.
ASSIGN
{&WINDOW-NAME}:COL = 10
{&WINDOW-NAME}:ROW = 10.
OR
ASSIGN
{&WINDOW-NAME}:COL = 10
{&WINDOW-NAME}:ROW = 10.
In a "smart" window, insert one of the above two statements in the "initializeObject" override procedure before the "RUN SUPER" statement. Note that while the X and Y attributes are measures in pixel units, the ROW and COL attributes are measured in 'character' units.