Skip to main content

TcxSchedulerResourceEvent Type

The procedural type of a resource state change notification event.

Declaration

TcxSchedulerResourceEvent = procedure(Sender: TObject; AResource: TcxSchedulerStorageResourceItem) of object;

Parameters

Name Type
Sender TObject
AResource TcxSchedulerStorageResourceItem

Remarks

Use the Sender parameter to access the persistence manager that raised a TcxSchedulerResourceEvent event. Use the AResource parameter to identify and access the event resource whose state has been changed in the Sender persistence manager. To access the manager’s members, you need to cast the Sender parameter to the corresponding persistence manager class (TcxSchedulerDBStorage or TcxSchedulerWebServiceStorage, for instance).

The TcxSchedulerDBStorageResources.OnResourceLoaded and TcxSchedulerStorageResources.OnResourceVisibleChanged events reference the TcxSchedulerResourceEvent type.

See Also