IBindingMaskEdit.AutoSelect

Fore Syntax

AutoSelect: Boolean;

Fore.NET 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.

Fore 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].

Fore.NET Example

Imports Prognoz.Platform.Interop.ForeSystem;

Function CreateMaskEditBidning(): String;
Var
    BM: BindingManager = New BindingManagerClass();
    MaskBoxBinding: IBindingMaskEdit;
Begin
    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;

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