From RAD Studio API Documentation
Jump to: navigation, search


typedef void __fastcall (__closure *TFindMethodEvent)(TReader* Reader, const System::UnicodeString MethodName, void * &Address, bool &Error);


Type Visibility Source Unit Parent
typedef public System.Classes.hpp System.Classes System.Classes


TFindMethodEvent is a procedure called by the TReader class OnFindMethod event.

Reader is the reader that is trying to locate an event handler.

MethodName is the name of the event handler that the reader is trying to locate.

Address is a pointer to the event handler. This pointer is nil (Delphi) or NULL (C++) if the reader can't locate the event handler. The event handler can use this parameter to supply a missing event handler or replace an existing one.

Error indicates whether the Address parameter points to the desired event handler. On Entry, Error is true if Address is nil (Delphi) or NULL (C++), and false if Address points to the event handler that the reader located. The event handler can change Error to true if it supplies a missing event handler.

TFindMethodEvent is for internal use only.

See Also