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

Static Text Control That Will Use Application-Specified Fonts

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

Publishing Venue

IBM

Related People

Eisen, I: AUTHOR [+3]

Abstract

Provided is a technique to allow an application to specify a font for static text fields.

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

Static Text Control That Will Use Application-Specified Fonts

       Provided is a technique to allow an application to
specify a font for static text fields.

      Presentation Manager* (PM) static text controls do not allow
any font except the system font.  These static text fields appear in
most dialog boxes. This means all dialog boxes that use static text
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 static text 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. All messages not handled by this new static text control
will be sent on to the Presentation Manager static text's window
procedure (i.e., this control subclasses the original PM control). If
there is no font specified by the application, then the system font
will be used and the control will operate as if i...