Consultor Eletrônico



Kbase P62244: How to manage which windows are enabled/disabled in a multi-
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/13/2004
Status: Unverified

GOAL:

How to manage which windows are enabled/disabled in a multi-window application ?

GOAL:

How to prevent input in one window while other windows are opened ?

FIX:

There are many ways to achieve this, and which one works best depends on how the application is architectured.
Two relatively easy approaches to handle this are:

1. Giving each window one or more internal procedures that manage which
widgets should be active and/or inactive. These procedures can then be
used from anywhere in your application to change the state of the window
as required.

2. Replacing windows with dialog boxes. As long as a Dialog box is open,
it is the only window that can have focus, effectively blocking all
other windows active at the time.