TcxSchedulerReminders.OnAlertReminder Event
In This Article
Allows you to customize the AReminder‘s alert behavior.
#Declaration
Delphi
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:
Delphi
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 On
See Also