Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Inversion of a Graphical Operating Environment's Window Close Process

IP.com Disclosure Number: IPCOM000118626D
Original Publication Date: 1997-Apr-01
Included in the Prior Art Database: 2005-Apr-01
Document File: 2 page(s) / 60K

Publishing Venue

IBM

Related People

Farn, B: AUTHOR [+2]

Abstract

A C++ object can be used to wrap a graphical user interface window element. When the window is closed through its user interface, the window element is destroyed, and the C++ wrapper is orphaned. Disclosed is a method of inverting the order of closing the window element and its C++ wrapper.

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

Inversion of a Graphical Operating Environment's Window Close Process

      A C++ object can be used to wrap a graphical user interface
window element.  When the window is closed through its user
interface, the window element is destroyed, and the C++ wrapper is
orphaned.  Disclosed is a method of inverting the order of closing
the window element and its C++ wrapper.

      C++ objects can be used to wrap graphical user interface
elements of operating environments such as OS/2 Presentation Manager*
and Microsoft Windows**.  These C++ objects have defined programming
interfaces which allow a programmer to modify the behavior of a user
interface element without having to know the operating environment
specific interfaces.

      The normal sequence of creation, use, and destruction of a user
interface element and a C++ object is as follows:
  o  A program creates a C++ object
  o  The C++ object creates the operating environment's user
      interface element
  o  The program interacts with the C++ object programming
      interface which, in turn, interacts with the user interface
      element to produce desired behavior
  o  The program destroys the C++ object which, during its
      destruction, destroys the user interface element

This is a controlled sequence which is true for all C++ wrapper
objects of user interface elements.  However, the above sequence
assumes that the destruction sequence is initiated by the program.

      A frame window has a user interface which gives a user of a
program the ability to close the frame window directly, without
notifying the program.  As a result:
  o  The C++ object is not destroyed when the frame window is
      destroyed
  o  The C++ object...