Displaying static text

The CommonPoint application system provides two classes--TTextDisplay and TTextGraphic--that encapsulate static text and allow you to display it. You can use these classes to create simple displayable text elements such as labels or buttons or to create textual graphic elements.


TTextDisplay allows you to display static text either as a single line or as multiple lines. You can display the text either vertically or horizontally, and can specify font and color style information for the displayed text. The user cannot edit text encapsulated by this class.

TTextGraphic, derived from MGraphic, encapsulates a TTextDisplay instance and allows you to treat it as a graphic. Use TTextGraphic instead of TTextDisplay only when you want to:

TSingleLineOrientation defines the orientation of a line of text elements within specific bounds. TMultiLineOrientation derives from TSingleLineOrientation and defines additional controls used to position multiple lines of text elements.


[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