Browse Prior Art Database

Style Set for PM Controls in AIX

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

Publishing Venue

IBM

Related People

Choy, SH: AUTHOR

Abstract

The development of applications utilizing graphic user interfaces (GUIs) causes a lot of difficulties when the applications are ported from one GUI platform to another. In Presentation Manager* (PM), special variables are used to define the style of certain controls such as windows, sliders, buttons, etc. It is desirable to take the same user interface developed on one platform and be able to run it on another without modification. In this case, a GUI built for OS/2* PM relies on these style variables for presentation.

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

Style Set for PM Controls in AIX

      The development of applications utilizing graphic user
interfaces (GUIs) causes a lot of difficulties when the applications
are ported from one GUI platform to another.  In Presentation
Manager* (PM), special variables are used to define the style of
certain controls such as windows, sliders, buttons, etc.  It is
desirable to take the same user interface developed on one platform
and be able to run it on another without modification.  In this case,
a GUI built for OS/2* PM relies on these style variables for
presentation.

      Provided is a technique for providing styles equivalent to
those found in Presentation Manager on OS/2 in an AIXwindows*
environment.  A GUI developed on OS/2 runs without modification in
the AIXwindows system.

      The invention is to provide a set of styles for AIXwindows
controls such that the 'feel' (i.e., the behavior), of these controls
is identical to the 'feel' in Presentation Manager.  In PM, styles
are defined by using masking parameters which are different for
different controls.  For example, windows, buttons and list boxes,
each have a separate set of styles which can be 'or'ed together.
Each masking value sets a bit in a long integer so that the style of
a particular control can be determined by looking at each bit in the
style variable to see which ones are set and which ones are not.

      The method invented here, to allow the GUI file from OS/2 PM to
run on AIXwindows, involves several steps:

1.  the input file is parsed into a structure
2.  the type of control is determined from the szClass parameter
3.  the control's...