TcxSchedulerReminders.OnAlertReminder Event
Allows you to customize the AReminder‘s alert behavior.
Declaration
property OnAlertReminder: TcxSchedulerReminderEvent read; write;
Remarks
Fires when AReminder is about to trigger.
Sender specifies the TcxSchedulerReminders collection that contains AReminder.
AReminder specifies the reminder instance, which will alert.
AHandled specifies whether default execution is required when the event handler has finished. Set AHandled to True to prevent default execution.
The following example demonstrates how to handle this event, so that reminder alerts will be filtered by a specific resource:
uses
cxVariants;
// ...
procedure TDBDemoMainForm.SchedulerDBStorageRemindersAlertReminder(
Sender: TcxSchedulerReminders; AReminder: TcxSchedulerReminder;
var AHandled: Boolean);
begin
AHandled := not VarEqualsSoft(AReminder.ResourceID, <AlertResourceID>);
end;
This event can also be used for developing schedule-driven applications, if required.
Note
use the OnAlertReminder event to keep tracking on triggered reminders, if the UseReminderWindow property is set to False.
See Also