RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBRichEdit Class

TDBRichEdit represents a multiline edit control that can display and edit a rich text memo field in a dataset.

Pascal
TDBRichEdit = class(TCustomRichEdit);
C++
class TDBRichEdit : public TCustomRichEdit;

DBCtrls

Use a TDBRichEdit object to enable users to edit a database field in a rich text edit control. TDBRichEdit provides the properties and methods to enter and work with rich text. TDBRichEdit does not provide any user interface components to make these formatting options available to the user. Applications must implement the user interface components to surface the rich text capabilities of a TDBRichEdit object. make this easier, a number of pre-defined standard actions operate on rich edit controls to perform common formatting tasks. 

TDBRichEdit uses the Text property to represent the contents of the field. Like other data-aware controls, TDBRichEdit controls automatically put the data source into edit mode when the value of the Text property is changed. However, if only the formatting of the text is changed, but not the text itself, the application must explicitly put the data source into edit mode so that the changes will be saved. This should be implemented as part of the user interface for the rich text capabilities. 

If the database field does not include text formatting information, consider using a TDBMemo object or a TDBEdit object instead. 

If the application doesn't require the data-aware capabilities of TDBRichEdit, use a rich text edit control (TRichEdit) instead, to conserve system resources. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!