Table of Contents

DefineEventAdapter Method

Registers a global event adapter that enables the scripter to handle Delphi events of the type specified by ARttiInfo.

Remarks

Works the same as TatEventAdapters.DefineEventAdapter. See that method for parameter details and examples. Once an adapter for a type such as TNotifyEvent is registered, all events of that type on any Delphi object become scriptable.

Syntax

Unit: atScript

function DefineEventAdapter(ARttiInfo: PTypeInfo; ADispatcherClass: TDispatcherClass; AMethodCode: Pointer; ACheck: Boolean = True): TatEventAdapter;

Parameters

<-> Parameter Type Description
ARttiInfo PTypeInfo
ADispatcherClass TDispatcherClass
AMethodCode Pointer
ACheck Boolean Optional: Default value is True