TcxDBMaskEdit Class
Represents a masked editor that enables displaying and editing text fields within a dataset.
Declaration
TcxDBMaskEdit = class(
TcxCustomMaskEdit
)
Remarks
A masked editor allows you to validate the text a user enters against a specific mask and to format this text. The TcxDBMaskEdit control’s functionality is similar to TcxMaskEdit, but it provides editing dataset field values.
To connect a data-aware control to a dataset set the DataSource and DataField properties of the DataBinding object.
The Properties object provides various settings controlling the editor behavior. The EditMask property is the main property defining a mask itself. A mask formalizes user input and formats the display text. It is possible to set a mask using the Input Mask Editor dialog activated via the Object Inspector. A masked editor supports three types of masks: standard, regular expressions and extended regular expressions. The standard mask is the same as the mask used in the standard TMaskEdit control. Regular expressions provide more flexibility to specify the mask. Extended regular expressions are like ordinary regular expressions but enable the auto completion feature. The syntax of masks is described in the Using MaskEdit topic.
Use the Style, StyleDisabled, StyleFocused and StyleHot properties to determine the look & feel of mask editors. Working with styles is discussed in the TcxCustomEditStyle class topic.