DesignIntf.IDesigner60.CreateMethod
Delphi
function CreateMethod(const Name: string; TypeData: PTypeData): TMethod; overload;
C++
virtual System::TMethod __fastcall CreateMethod(const System::UnicodeString Name, System::Typinfo::PTypeData TypeData) = 0 /* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | DesignIntf.pas DesignIntf.hpp |
DesignIntf | IDesigner60 |
Description
Creates an event handler.
Call CreateMethod to add an event handler to the unit of the Root object. Allocate a TTypeData structure and fill in the MethodKind, ParamCount, and ParamList fields. The event handler gets the name specified by the Name parameter and the type specified by the TypeData parameter. CreateMethod returns a method pointer to the new event handler.