Styling text

Within the CommonPoint application system, you can style all text. Anywhere you display text in the system--textual elements in program interfaces such as menu items, labels, editable fields in dialogs, spreadsheet cells, and documents--you can apply styling information on a character-by-character basis.

The text system stores and manipulates styling information along with the character data in the same instance of text. Unlike many systems, where style information is often lost when you cut and paste text between applications, you can freely move text around the CommonPoint application system without losing any styling information. You can, for example, cut and paste text within a document or between documents without losing the character formatting information. You can also manipulate the character data and the style data separately.

Information about each style applied to character data is encapsulated by an instance of the correct style class. You instantiate the correct style class, for example, the color style, and give it a particular value, for example, red. You can then apply this style to any character or range of characters in your text instance. The editable text document component provides higher-level interfaces that allow the end user to apply styles to text selections from a menu.

The system includes a complete set of character style classes, covering styling aspects such as:

The system also includes a set of paragraph style classes that control paragraph formatting characteristics such as:

See
"Creating and managing styled text" on page 42 for more information on styling text. A complete list of the available style classes is included in the online class and member function documentation.


[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