Link to home
Start Free TrialLog in
Avatar of DeonCrause
DeonCrause

asked on

Delphi RTTI : Retrieve method names (not only those marked with property)

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 :

...
published  
  property OnEvent : TOwnEvent read FOnEvent write FOnEvent default nil; << This is returned by GetPropList
  procedure DoSomething; <<This is not returned by GetPropList.
end;
...

Any help will be greatly appreciated!
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Lee_Nover
Lee_Nover

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of robert_marquardt
robert_marquardt

Alternatively http://jcl.sf.net to get the Jedi Code Library.