Browse Prior Art Database

Push-Button Control That Uses Application Specified Fonts

IP.com Disclosure Number: IPCOM000101142D
Original Publication Date: 1990-Jul-01
Included in the Prior Art Database: 2005-Mar-16
Document File: 1 page(s) / 44K

Publishing Venue

IBM

Related People

Eisen, I: AUTHOR [+3]

Abstract

Described is a technique to allow an application to specify a font for push button.

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

Push-Button Control That Uses Application Specified Fonts

       Described is a technique to allow an application to
specify a font for push button.

      Presentation Manager* (PM) push-button controls do not allow
any font except the system font.  These push buttons appear in most
dialog boxes. This means all dialog boxes that use push button
controls will have to use the system font.  Applications that allow
the user other fonts for their main window will be forced to use
dialog boxes with a different font (i.e., the system font).

      Create a push button control that will accept a message from
the application that specifies the preferred font. This font can be
specified by the application at creation time by passing the FATTRS
(fonts attributes) structure in the CtlData parameter of the
WinCreateWindow statement.  The control will allow changes in font by
way of a Ds_ChangeFont message.  The first of the message parameters
will be a pointer to the FATTRS font attribute structure.  It is up
to the application to load the font it desires into the structure.
The control will paint the text using the font specified by the
application.  When the button is pressed the control will act exactly
as the Presentation Manager control except that the text will have
the application-specified font.  All messages not handled by this new
push-button control will be sent on to the Presentation Manager push
button's window procedure (i.e., this control subclasses t...