The DBRich Edit Component

The DBRichEdit component is a data-aware control that can display formatted text stored in BLOB fields. Rich Text describes text fields that support the formatting of individual characters, words, and paragraphs. Text searching and printing functions are supported by Rich Text controls and by default they support the following types of formatting:

Font attributes such as typeface, size, color, etc.

Text alignment, tabs, indentation, and list numbering

  • Drag and drop capabilities
  • The conversion of Rich Text to plain text

Chapter 6—Delphi's Data-Aware Components

  • Drag and drop capabilities
  • The conversion of Rich Text to plain text

DBRichEdit supports these formatting capabilities but does not provide any interface elements to implement them. Your application will have to support these functions separate from the control.

One other aspect of this control is important to realize when implementing it in an application. DBRichEdit will automatically place the dataset object into the Edit state when the text is changed within the control. If only the formatting of the text displayed by the control is modified, the application must programmatically put the dataset into Edit for the changes to be saved; this is an important distinction between the text and the formatting that should be remembered.

Was this article helpful?

0 0

Post a comment