IBindingDateTimePicker.CheckBox

Fore Syntax

CheckBox: Boolean;

Fore.NET 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.

Fore 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.

Fore.NET Example

Imports Prognoz.Platform.Interop.ForeSystem;

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

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