TcxCustomScheduler.CreateEventUsingDialog(Boolean,Boolean) Method
Invokes the Event dialog used to create new user events.
Declaration
procedure CreateEventUsingDialog(AllDay: Boolean = False; ARecurrence: Boolean = False); virtual;
Parameters
Name | Type |
---|---|
AllDay | Boolean |
ARecurrence | Boolean |
Remarks
Use the CreateEventUsingDialog method to display the Event dialog to create a new user event in the selected time block, or in the day whose all-day event area was selected. In the latter case the newly created user event is an all-day event.
If schedules are organized into schedule groups by resources (if the View’s GroupingKind property is set to gkByResource and more than one resource is defined), the new user event is created in the currently selected resource (see the TcxCustomScheduler.SelResource property).
The AllDay parameter specifies whether the new user event is an all-day event (see the TcxSchedulerEvent.AllDayEvent property). Set the AllDay parameter to True to specify the new user event as an all-day event. In this case the All day event check box in the Event dialog is checked.
The ARecurrence parameter specifies whether or not the Event recurrence modal dialog is displayed above the Event dialog when the CreateEventUsingDialog method is called. Set the ARecurrence parameter to True to invoke the Event recurrence modal dialog along with the Event dialog.
Note
if the cxSchedulerDBStorage component is plugged into the scheduler control (see TcxSchedulerDBStorage) and the TcxSchedulerDBStorageFieldNames.LabelColor property is not bound to the dataset field, the Label image combo box used to edit a color label (see also the TcxSchedulerEvent.LabelColor property) will be disabled in the Event dialog.