IMaskEdit.MaskEnabled

Syntax

MaskEnabled: Boolean;

Description

The MaskEnabled property determines whether the component operates in the data input mode in accordance with the specified template and the input mask.

Comments

If the property is set to True, the data is entered according to the specified template and input mask, otherwise the component works identically to the EditBox component.

Example

Executing the example requires a form, the Button1 button on this form and the MaskEdit component named MaskEdit1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Begin

MaskEdit1.MaskEnabled := True;

MaskEdit1.Mask := "           dd dd ddddd";

MaskEdit1.InputTemplate := "Telephone:8-9__-__-_____";

End Sub Button1OnClick;

After executing the example the template to enter the cell phone number is set for the MaskEdit1 component by clicking the button.

See also:

IMaskEdit