Delphi RTTI : Retrieve method names (not only those marked with property)
Posted on 2004-08-16
I've written a few classes making use of pulished properties to allow a grid to be used to edit the properties using RTTI. Now I want to read the published methods and add them to a generic popup-menu. The problem : Using TypInfo GetPropList, I only get the methods (events) marked with "property", and not any other methods, even though I use tkMethods. My question : How do I get a list of published method names if possible? e.g :
property OnEvent : TOwnEvent read FOnEvent write FOnEvent default nil; << This is returned by GetPropList
procedure DoSomething; <<This is not returned by GetPropList.
Any help will be greatly appreciated!