Progress
Programming
Handbook


Active Window Display

When you display a message, alert box, or dialog box, you generally want the message or widget displayed in or near the window where the user is working. In multi-window applications, especially those managed by persistent procedures, it is possible for the user to be working in one window and have a persistent procedure display a dialog box in another. This can occur because the current window of the persistent procedure that displays the dialog box might not be the window where the user is working. The procedure controlling the user’s window might be calling an internal procedure whose parent persistent procedure has a different current window.

To ensure that your messages, alert boxes, and dialog boxes get displayed in the window the user is working in, you can specify the ACTIVE–WINDOW system handle for the IN WINDOW option of the appropriate I/O statement. The ACTIVE–WINDOW handle always references the session window that has most recently received input focus. For an example using the ACTIVE–WINDOW handle and more information on managing multi-window applications, see Windows."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095