The IntegerEdit Value Editor

The following parameters are available to set up value editor using binding string:

Name
of the parameter
Type Description Mandatory
MINVAL Integer Minimum available value. None
MAXVAL Integer Maximum available value. None
VALUE Integer Default value. None
ALLOWEMPTY Logical Value can be empty. None
CORRECTONEXIT Logical Indicates that value is automatically adjusted on editor loss of focus. None

Logical values are set as a character string of the ON/OFF or the True/False type.

Features of Application

None

Binding String

UI="IntegerEdit" VALUE="500" MINVAL="0" MAXVAL="1000"

Example

Executing the example requires a form with the button named Button1 on it, the TabSheetBox component and the UiTabSheet component named UiTabSheet1, which is the data source for TabSheetBox.

Class TestForm: Form
    Button1: Button;
    UiTabSheet1: UiTabSheet;
    TabSheetBox1: TabSheetBox;

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        BM: IBindingManager;
        IntegerEditBinding: IBindingIntegerEdit;
    Begin
        BM := New BindingManager.Create;
        IntegerEditBinding := BM.CreateByUi("IntegerEdit"As IBindingIntegerEdit;
        IntegerEditBinding.CorrectOnExit := True;
        IntegerEditBinding.MinValue := -100;
        IntegerEditBinding.MaxValue := 100;
        IntegerEditBinding.Value := 0;
        UiTabSheet1.TabSheet.Cell(00).Style.Binding := IntegerEditBinding.AsString;
    End Sub Button1OnClick;

End Class TestForm;

Clicking the button sets the value editor for the A0 table cell. On editing the cell integer value input field is displayed, minimum value is -100, maximum value is 100, the default value is 0.

Back