Consultor Eletrônico



Kbase P143393: How to hide the default window when running dialog frame as startup procedure?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   24/03/2009
Status: Unverified

GOAL:

How to hide the default window when running dialog frame as startup procedure?

GOAL:

How to prevent the grey standard window from being shown when running a dialog-box .w from procedure editor ?

FACT(s) (Environment):

Progress/OpenEdge Product Family
Windows
OpenEdge Category: Language (4GL/ABL)

FIX:

When running a .w for a dialog-box as a startup procedure or directly from Procedure Editor, a window with grey background appears.This is the session's DEFAULT-WINDOW. Since no other window is set to be the CURRENT-WINDOW in these circumstances, the dialog-box frame is parented to this window, which forces it to become visible.


There are no command line options to suppress this, but it can be made hidden using ABL code:

DEFAULT-WINDOW:HIDDEN = YES.

Note that adding this code in the dialog.w itself may have unintended side-effects if it is called from somewhere else within an application.
As long as the application code resets the CURRENT-WINDOW to the active window (as AppBuilder generated code does), the risk of this is low. To further minimize the risk, it is recommended to reset the default window when the dialog is closed.