Browse Prior Art Database

Method for Emulating Raised or Depressed Presentation Manager Objects

IP.com Disclosure Number: IPCOM000116010D
Original Publication Date: 1995-Jul-01
Included in the Prior Art Database: 2005-Mar-30
Document File: 2 page(s) / 82K

Publishing Venue

IBM

Related People

Rock III, PR: AUTHOR

Abstract

Disclosed is an Application Program Interface (API) making Presentation Manager* (PM) objects appear to be raised or depressed. The API is designed by calling for the presentation space, handle of the object, whether the object is to be raised or depressed, and values determining how high it is to be raised or how low it is to be depressed. The API can be designed to be called, for example, as follows: AlterBorder (hps, hwnd, verticalvalue, horizontalvalue, DB_RAISED)

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

Method for Emulating Raised or Depressed Presentation Manager Objects

      Disclosed is an Application Program Interface (API) making
Presentation Manager* (PM) objects appear to be raised or depressed.
The API is designed by calling for the presentation space, handle of
the object, whether the object is to be raised or depressed, and
values determining how high it is to be raised or how low it is to be
depressed.  The API can be designed to be called, for example, as
follows:
  AlterBorder (hps, hwnd, verticalvalue, horizontalvalue, DB_RAISED)

      The Figure is an example of an object in which the entire
dialog box appears to be raised, with additional raised and depressed
areas.

      The object is painted with a different effect within the
WM_PAINT section.  The user must query the rectangular coordinates of
the object, which may be an entire dialog box, or simply an
entryfield or pushbutton within the dialog box.  The following code
is used for this purpose:
  // Declarations
  HPS    hps;           //Handle to a presentation space
  RECTL  Rectl;        //Rectangular coordinates of the object
    case    WM_PAINT;
          hps = WinBeginPaint (hwnd,0,0);
          WinQueryWindowRect (hwnd,&Rectl);

      The user then fills the dialog box.  While the WinFillRect
function does not change the state of the dialog, it paints the
dialog background according to the color chosen by the user,
specifying, for example:
  WinFillRect (hps,&Reclt,CLR_PALEGRAY);

This function call is not necessary when manipulating an object of
type pushbutton, text, or entryfield.

      The user may next alter the object as desired with the use of
the WinDrawBorder and GpiBox functions.  The border is first paint...