Browse Prior Art Database

Smalltalk/V PM Unique Method for Creating Dialog Boxes

IP.com Disclosure Number: IPCOM000121568D
Original Publication Date: 1991-Sep-01
Included in the Prior Art Database: 2005-Apr-03
Document File: 3 page(s) / 104K

Publishing Venue

IBM

Related People

Chandler, PR: AUTHOR [+3]

Abstract

There has been no method for easily creating dialog boxes within Smalltalk/V* PM that allows the option for working with the dialog controls as if they were Smalltalk/V PM controls. In the first common method, dialogs were created using the OS/2** Dialog Box Editor and then interaction with Smalltalk/V PM was handled by sending messages to the item ids for the fields. The problem with this is that the field controls (entry field, combo box, list) cannot be used as Smalltalk/V PM instances to be able to take full advantage of the OS/2 environment.

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

Smalltalk/V PM Unique Method for Creating Dialog Boxes

      There has been no method for easily creating dialog boxes
within Smalltalk/V* PM that allows the option for working with the
dialog controls as if they were Smalltalk/V PM controls.  In the
first common method, dialogs were created using the OS/2** Dialog Box
Editor and then interaction with Smalltalk/V PM was handled by
sending messages to the item ids for the fields.  The problem with
this is that the field controls (entry field, combo box, list) cannot
be used as Smalltalk/V PM instances to be able to take full advantage
of the OS/2 environment.  The second common method is to create the
dialog box within the Smalltalk language, but this is cumbersome and
time consuming and requires exact positioning of the fields by X and
Y axes and in specific ratios or points on the screen, and does not
include a graphical interface for creating dialog boxes like the
Dialog Box Editor does.

      Using Smalltalk/V PM, the process of creating dialog boxes and
managing their controls has been implemented in a unique manner.
Taking advantage of the graphical user interface from within the OS/2
Dialog Box Editor, we have found a way to instantiate (create an
instance of) the dialog box fields by associating instances with the
dialog controls.  The instances can be worked with as Smalltalk/V PM
controls, so the best of both old solutions above are saved. This
method allows for more efficient coding within Smalltalk/V PM and
still gives the developer the ability to graphically create the
dialog boxes, saving additional time.

      The first step is to create the dialog box using the graphical
OS/2 Dialog Box Editor.  The second step is to associate instances
with the dialog box controls.  In the example of the "Move" dialog
box, the name entry field must be instantiated.  (See the figure.)
Functions may be assigned to the field (how it should respond to
mouse clicks on it, or what should happen once it has been filled in
by the user...).  In the case of the "Move" dialog, a valid entry in
the name field must be entered before the "move" button is enabled.
(The method "checkButtonState:" will ensure that the "move" button
appears grayed until a valid name is entered.)  The following code
will instantiate (create an instance of) the name entry field to
"nameEF":
      nameEF:= EntryField new owner: self...