TatEventAdapters Class
A collection of all event adapters registered in the scripter. One adapter is required per supported event type.
Remarks
For example, registering an adapter for TNotifyEvent enables the scripter to handle all Delphi events of that type (OnClick, OnChange, OnEnter, OnExit, etc.) on any object.
Use DefineEventAdapter to register a new adapter.
Syntax
Unit: atScript
TatEventAdapters = class(TCollection);
Methods
| Name | Description |
|---|---|
| AdapterByPropInfo | Finds the event adapter for the event property specified by APropInfo. If no adapter is registered for the event type, AdapterByPropInfo returns nil. |
| Add | Do not call this directly. Use DefineEventAdapter instead. |
| DefineEventAdapter | Registers a new event adapter for the event type specified by ARttiInfo. |
| FindAdapter | Finds the event adapter for the event type specified by ARttiInfo. If no adapter is registered for the event type, FindAdapter returns nil. |
Properties
| Name | Description |
|---|---|
| Items[i] | Provides indexed-access to all adapters registered in the scripter. |