Kbase P14558: How to run a persistent SmartWindow
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  24/03/2003 |
|
Status: Unverified
GOAL:
How to run SmartWindows from other SmartWindows
FACT(s) (Environment):
Progress 8.x
FIX:
The run....PRESISTENT for a SmartWindow does not initialize the SmartWindow. It must be initialized as the following example:
DEFINE VARIABLE w-handle AS HANDLE NO-UNDO.
Run window-1.w persistent set w-handle.
Run dispatch in w-handle ('initialize').
This will work fine for running the window stand-alone but you will not have any parenting relationships or container links set up for you which means that the child window will not be destroyed or hidden when the parent window is destroyed or hidden. For your purposes, you may not need these container links
and may find that this approach works fine for you. Or, you can set up the CONTAINER links (or any other kind of links) yourself;
for example:
run add-link in adm-broker-hdl (this-procedure,
'CONTAINER', w-handle).