Consultor Eletrônico



Kbase P14041: How to close the child window when its parent is closed
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/14/2007
Status: Verified

GOAL:

How to close the child window when its parent is closed

GOAL:

How to set the PARENT attribute for a window after it is launched

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x
Windows

FIX:

The following code is an example of how to set the PARENT attribute for a window which in turn will cause a child window to be closed when its parent window is closed:

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

RUN wDetalle2.w PERSISTENT SET hProcedure (INPUT h_dEmpleado).

RUN initializeObject IN hProcedure.

ASSIGN hWindow = hProcedure:CURRENT-WINDOW
hWindow:PARENT = wWin.