RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.CreateMethod Method

Creates an event handler.

Pascal
function CreateMethod(const Name: string; TypeData: PTypeData): TMethod; overload;
C++
__fastcall TMethod CreateMethod(const AnsiString Name, PTypeData TypeData);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!