Help using RTTI objects needed lazarus / 31-LCL ---------------------------------------------------------------------- reinerr · 2011-07-07 10:52 After fruitlessly searching the web I eventually put a TTIPropertyGrid on my form and am able to use it as a run-time property editor for one of my classes by assigning its TIObject a value as needed. I was even able to create a property editor for a one of the main class's properties (which is actually an object list) by getting it to open a new form and populating another TTIPropertyGrid. That part of it now works but all my primary objects also link to another of this primary object (ie. at run time the user selects the "next" property for an "event" which is of the same type. This should not be confused with the events of components as all I want to have is a reference to another object like you would in the form designer where you can select, for example, a TLabel's FocusControl at design time I want it to list all the TMyObjects at run time. I event changed the ancestor of my class to TControl and placed them on the form (by assigning the parent property in the constructor) in the hope that they would be listed but, although the property comes up at run time, there is never anything listed. Part of the problem is I can't find any real documentation on the RTTI controls and have no idea what all the other RTTI controls (like TTILabel) serve. Also, at run time I would like properties to not show their pascal enumerated types but would like to display "english" names instead. For example, instead of "clRed" for a color I'd like it to say "Red". I'm assuming I'll have to register the types (TColor in this instance) with its own property editor? [I'm developing a game with a "level" editor where I want the users to be able to select properties of the objects.] ---------------------------------------------------------------------- felipemdc · 2011-07-19 07:57 There are some wiki pages on RTTI, but not very complete ones: http://wiki.lazarus.freepascal.org/RTTI_controls http://wiki.lazarus.freepascal.org/Runtime_Type_Information_(RTTI) And some generic info about RTTI here: http://www.blong.com/Conferences/BorConUK98/DelphiRTTI/CB140.htm For the controls I think you will need to read the code...