Simple text display

The primary classes for displaying text in the CommonPoint application system are provided by the Text Editing framework, described in Chapter 5, "Text Editing framework." These classes provide support for displaying formatted text and allowing text input from a keyboard.

For simpler text display needs, the CommonPoint application system provides the TTextDisplay and TTextGraphic classes. You use TTextDisplay to create and display both single- and multiple-line displays of static text. TTextGraphic provides the same functionality and, additionally, allows you to manipulate the text as a graphic object. The section "Displaying static text" in this chapter describes how to use these classes.

The CommonPoint application system also includes a mechanism for preprocessing text so that it can be displayed properly. The font substitution mechanism verifies character data to ensure that fonts are available to display each character. This mechanism ensures that each character is displayed meaningfully even if it does not have a corresponding glyph in the current font. You can use this mechanism with both TTextDisplay and the Text Editing framework classes. Font substitution is described on page 74.

Displaying static text
Font substitution

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker