IBindingMaskEdit.AutoSelect

Syntax

AutoSelect: Boolean;

Description

The AutoSelect property determines the AUTOSELECT parameter value in binding string.

Comments

The AUTOSELECT parameter determines whether text is automatically selected on starting the editor.

The AutoSelect property is available if the AutoSelectDefined property is set to True. If the AutoSelect property is changed, the AutoSelectDefined property is automatically set to True.

Example

Function CreateMaskEditBidning: String;
Var
    BM: IBindingManager;
    MaskBoxBinding: IBindingMaskEdit;
Begin
    BM := New BindingManager.Create;
    MaskBoxBinding := BM.CreateByUi("MaskEdit"As IBindingMaskEdit;
    MaskBoxBinding.AutoSelect := True;
    MaskBoxBinding.Mask := "           dd dd ddddd";
    MaskBoxBinding.InputTemplate := "Telephone:8-9__-__-_____";
    MaskBoxBinding.MaxLength := 22;
    MaskBoxBinding.Value := "Telephone:8-9";
    MaskBoxBinding.ValidChars := "012345";
    Return MaskBoxBinding.AsString;
End Function CreateMaskEditBidning;

This function generates binding string to use value editor by mask. A mask to input telephone number will be determined in the editor, the telephone number can contain digits in the range [0;5].

See also:

IBindingMaskEdit