Browse Prior Art Database

Multiple Modal Dialog Support for Single Threaded Applications

IP.com Disclosure Number: IPCOM000111557D
Original Publication Date: 1994-Mar-01
Included in the Prior Art Database: 2005-Mar-26
Document File: 2 page(s) / 29K

Publishing Venue

IBM

Related People

Brown, RW: AUTHOR [+3]

Abstract

Modal dialogs are normally displayed using functions that do not return until the dialog has been dismissed by the user. Stack space is required for each invocation with a non-return-based modal. A method is described that allows a programmer to display modal dialog boxes that return immediately. The new process avoids the requirement for stack space on each invocation. The protocol has been established as the following:

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Multiple Modal Dialog Support for Single Threaded Applications

      Modal dialogs are normally displayed using functions that do
not return until the dialog has been dismissed by the user.  Stack
space is required for each invocation with a non-return-based modal.
A method is described that allows a programmer to display modal
dialog boxes that return immediately.  The new process avoids the
requirement for stack space on each invocation.  The protocol has
been established as the following:

o   The owner window creates a modeless dialog using a function that
    returns prior to the dismissal of the dialog.  The function is
    WinLoadDlg under the IBM OS/2* Presentation Manager*.

o   The owner window disables itself, causing the modeless dialog to
    behave as a modal dialog.  The function is WinEnableWindow under
    the IBM OS/2 Presentation Manager.

o   The Modal dialog notifies the owner window via a message when it
    is dismissed, allowing the owner to destroy the modal dialog,
    enable itself, and perform any necessary cleanup processing
    (WinEnableWindow and WinDestroyWindow functions under the IBM
    OS/2 Presentation Manager).

*  Trademark of IBM Corp.