DesignIntf.IDesigner60.CreateMethod

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
DesignIntf.pas
DesignIntf.hpp
DesignIntf IDesigner60

Description

Crée un gestionnaire d'événements.

Appelez CreateMethod pour ajouter un gestionnaire d'événements à l'unité de l'objet racine. Allouez une structure TTypeData et renseignez les champs MethodKind, ParamCount et ParamList. Le gestionnaire d'événements obtient le nom spécifié par le paramètre Name et le type spécifié par le paramètre TypeData. CreateMethod renvoie un pointeur de méthode au nouveau gestionnaire d'événements.

Voir aussi