The TimePicker Value Editor

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

Name
of the parameter
Type Description Mandatory
SPIN Logical Arrows to increase or decrease values of time components. None
MINVAL Date Minimum available value. None
MAXVAL Date Maximum available value. None
VALUE Date Default value (NOW is current time). 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="TimePicker" VALUE="NOW" SPIN="ON"

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;
        DatePickerBinding: IBindingDateTimePicker;
    Begin
        BM := New BindingManager.Create;
        DatePickerBinding := BM.CreateByUi("TimePicker"As IBindingDateTimePicker;
        DatePickerBinding.Spin := False;
        DatePickerBinding.Value := DateTime.Now;
        UiTabSheet1.TabSheet.Cell(00).Style.Binding := DatePickerBinding.AsString;
    End Sub Button1OnClick;

End Class TestForm;

Clicking the button sets the value editor for the A0 table cell. On editing the cell the value editor is displayed, default value is current time.

Back