Progress
AppBuilder
Developer’s Guide


Defining a Typestyle

The steps in defining a new typestyle or editing an existing one are the same. To define a new typestyle, follow these steps:

  1. Open the property sheet for a widget. Click on the typestyle button (the AAa icon). The Choose Font dialog box opens:
  2. Unless you also want to change the font being used for the current widget, make a note of which slot is current so that you can restore it before you exit this font-editing session.
  3. Slots 0 through 7 have predefined styles that are not editable. You can assign styles to slots 8 through 255. Click the right arrowhead button until slot 8 appears.
  4. Double-click slot 8. The Font dialog box opens:
  5. Choose a face, a weight and slant, a point size, and attributes (underline, etc.). Unless you are creating an application for a market that requires a special encoding (Greek, Cyrillic, etc.), be sure the Script setting is Western.

CAUTION: Remember that the fonts being presented to you by this dialog box are those you have installed on your development system. The fonts you choose here will not necessarily be available to the users of your application unless you provide them as part of your software distribution package. Unless you are prepared to do that, you should choose only those fonts that you know are supplied with the operating system.
  1. Click OK to dismiss the Font dialog box. Your choices are reflected in the sample text in the slot. In this example, it shows the result of choosing 10pt Arial Bold, with underlining:
  2. Unless you want your definition discarded at the end of the current AppBuilder session, click Save Font Settings to make your definition permanent.
  3. Click on the slot you noted in Step 2. If you want to change the typestyle for the current widget, click on that slot instead.
  4. Click on OK to dismiss the Choose Font dialog box. Click on OK to dismiss the Property Sheet dialog box.

Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095