[lazarus] Using RTTI to get properties and methods

Peter Vreman peter at freepascal.org
Mon Feb 5 14:24:34 EST 2001



>>PT := GetTypeData(Form1.ClassInfo)
>>
>>Pt only reflects the published properties and methods.  Is there a way to 
>>get the other methods or am I doing this wrong?
>
>Not with RTTI.
>
>>Should I be using something else to implement code completion?
>
>Yes, the browser info. Maybe have a look at the implementation
>of browser info in the text mode IDE. The important files for
>browser implementation are:
>
>ide/text/fpsymbol.pas
>compiler/browcol.pas
>compiler/browlog.pas
>
>Afaik the disadvantage is that the current implementation needs parts of 
>the compiler (symtable etc.).
>The browser.log generated by the switch -bl isn't very helpful.
>
>If you need more info, Pierre or Peter may help.

A way to be independent of the compiler is to create a browser database 
file that lazarus then can load. MSDev does it also that way. The IDE 
should also keep track of the line number changes made by insertion or 
deletion.


Peter






More information about the Lazarus mailing list