Browse Prior Art Database

Changing Fonts for All Fields Within a Dialog Box

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

Publishing Venue

IBM

Related People

Eisen, I: AUTHOR [+3]

Abstract

This article describes a technique to allow an application to specify a font for all the fields contained in a specified dialog box.

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

Changing Fonts for All Fields Within a Dialog Box

       This article describes a technique to allow an
application to specify a font for all the fields contained in a
specified dialog box.

      Applications would like to display the fields within dialog
boxes using a font other than the system font.  A method is needed to
change the font of every control within a dialog box.  Products such
as Editors give the user the capability to change the font being
used.  However, the dialog boxes being shown by the editor using
Presentation Manager* (PM) controls will always use the system font.

      First create the dialog boxes using font-sensitive controls.
Provide a function that will change every receptive control within
the dialog box. This function will have 2 parameters; the first is
the handle of the dialog box, the second is a pointer to the FATTRS
structure for the font. The function will enumerate every control
used by the dialog box and send it a Ds_ChangeFont message.  The
receptive controls will repaint with the specified font. Note the
dialog box would be brought up invisible and later be made visible
after the fonts have been changed by the function.

      The application has a simple function interface for setting the
fonts for all the controls that are in a dialog box.  Dialog boxes
that are displayed can have the user- or application-preferred font.
*  Trademark of IBM Corp.