Specifying default text properties

You probably want to establish a standard look for the text in your application. There are four kinds of text whose properties you can specify in the Application painter: text, header, column, and label.

PowerBuilder provides default settings for the font, size, and style for each of these and a default color for text and the background. You can change these settings for an application in the Application painter and override the settings for a window, user object, or DataWindow object.

NoteProperties set in the Database painter override application properties If extended attributes have been set for a database column in the Database painter or Table painter, those font specifications override the fonts specified in the Application painter.

StepsTo change the text defaults for an application:

  1. In the Properties view, click Additional Properties and select one of the following:

    • Text Font tab

    • Header Font tab

    • Column Font tab

    • Label Font tab

    The tab you choose displays the current settings for the font, size, style, and color. The text in the Sample box illustrates text with the current settings.

  2. Review the settings and make any necessary changes:

    • To change the font, select a font from the Font list.

    • To change the size, select a size from the Size list or type a valid size in the list.

    • To change the style, select a style (Regular, Italic, Bold, or Bold Italic) from the Font styles list.

    • To change font effects, select one or more from the Effects group box (Strikeout and Underline).

    • To change the text color, select a color from the Text Color list. (You do not specify colors for data, headings, and labels here; instead, you do that in the DataWindow painter.)

    • To change the background color, select a color from the Background list.

  3. When you have made all the changes, click OK.