Vcl.DBCtrls.TDBRichEdit

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.ComCtrls.TCustomRichEditVcl.StdCtrls.TCustomMemoVcl.StdCtrls.TCustomEditVcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTDBRichEdit

Delphi

TDBRichEdit = class(TCustomRichEdit)

C++

class PASCALIMPLEMENTATION TDBRichEdit : public Vcl::Comctrls::TCustomRichEdit

Properties

Type Visibility Source Unit Parent
class public
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls Vcl.DBCtrls

Description

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

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.

See Also