MaskEnabled: Boolean;
The MaskEnabled property determines whether the component should operate in the data input mode in accordance with the specified template and the input mask.
If the True value is set for the property the data are entered according to the specified pattern and input mask, otherwise the component works equal to the component called the EditBox.
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;
The pattern to enter the cell phone number is set for the MaskEdit1 component by clicking the button after an example execution.
See also: