The CheckBox Value Editor

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

Name
of the parameter
Type Description Mandatory
ALIGN String Checkbox position relative to text.
Available values:
  • LEFT. Checkbox is to the left from text.
  • CENTER. Checkbox is centered, text is not displayed.
  • RIGHT. Checkbox is to the right from text.
None
TEXT String Checkbox label (radio button). None
VALUE Logical Default value. 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="CheckBox" ALIGN="LEFT" TEXT="On/Off" VALUE="ON"

Example

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

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

    
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    
Var
        BM: IBindingManager;
        CheckBoxBinding: IBindingCheckBox;
    
Begin
        BM := 
New BindingManager.Create;
        CheckBoxBinding := BM.CreateByUi(
"CheckBox"As IBindingCheckBox;
        CheckBoxBinding.Align := CheckAlignment.Right;
        CheckBoxBinding.Caption := 
"On/Off";
        CheckBoxBinding.Value := 
True;
        UiTabSheet1.TabSheet.Cell(
00).Style.Binding := CheckBoxBinding.AsString;
    
End Sub Button1OnClick;
End Class TestForm;

Clicking the button sets the value editor for the A0 table cell. On editing the cell, the radio button is displayed, which label is ON/OFF, the default value is on, the checkbox position is to the right from text.

Back