The following parameters are available to set up value editor using binding string:
Name of the parameter |
Type | Description | Mandatory |
VALUE | String | Default value. | None |
ALLOWDOT | Logical | Ability to include the "." character into editor value. | None |
Logical values are set as a character string of the ON/OFF or the True/False type.
None
UI="IdentEdit" ALLOWDOT="true" VALUE="ID"
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;
IdentEditBinding: IBindingIdentEdit;
Begin
BM := New BindingManager.Create;
IdentEditBinding := BM.CreateByUi("IdentEdit") As IBindingIdentEdit;
IdentEditBinding.AllowDot := True;
IdentEditBinding.Value := "ID";
UiTabSheet1.TabSheet.Cell(0, 0).Style.Binding := IdentEditBinding.AsString;
End Sub Button1OnClick;
End Class TestForm;
Clicking the button sets the value editor for the A0 table cell. When the cell is edited, the field of identifier editing will be displayed. By default, the ID value is displayed, the . character can be used in the identifier.