IBindingDateTimePicker.CheckBox

Syntax

CheckBox: Boolean;

Description

The CheckBox property determines the CHECKBOX parameter value in binding string.

Comments

If the CHECKBOX parameter is set to True, the editor is available, otherwise it is not available.

The CheckBox property is available if the CheckBoxDefined property is set to True. If the CheckBox property is changed, the CheckBoxDefined property is automatically set to True.

Example

Function CreateDateTimePickerBidning(DTValue: DateTime): String;
Var
    BM: IBindingManager;
    DateTimePickerBinding: IBindingDateTimePicker;
Begin
    BM := New BindingManager.Create;
    DateTimePickerBinding := BM.CreateByUi("DateTimePicker"As IBindingDateTimePicker;
    DateTimePickerBinding.CheckBox := True;
    DateTimePickerBinding.CheckBoxFocus := True;
    DateTimePickerBinding.DropCalendar := True;
    DateTimePickerBinding.MinValue := DateTime.AddYears(DTValue, -5);
    DateTimePickerBinding.MaxValue := DateTime.AddYears(DTValue, 5);
    DateTimePickerBinding.Spin := True;
    DateTimePickerBinding.Time := True;
    DateTimePickerBinding.Value := DTValue;
    Return DateTimePickerBinding.AsString;
End Function CreateDateTimePickerBidning;

This function generates a binding string to use date/time value editor. The current date, in regards to which the editor settings are determined, is passed as the DTValue input parameter.

See also:

IBindingDateTimePicker