This forum is deprecated.
I want to create a similar component that is used in C++ Builder in the Object Inspector. Any idea?
Thanks in advance,
There are plenty of 3rd party ObjectInspector-like components already available if you search around.
You can use drawgrid and the appropriate dynamically initialized components to select the appropriate properties.Properly set Parent and coordinates and have your own object inspector.
You left out the most important piece - using RTTI to figure out what properties are present and what types they are, so you can then populate the grid accordingly. But a DrawGrid isn't very appropriate for this situation. A ValueListEditor might be, but it won't cover all possible property types. It would be really helpful if marcinsztajn would explain why they want a Object Inspector at runtime to begin with
There seem to be many ways to solve this problem.DrawGrid displays images, so you can use it to display any content without problems.The interior is, for example, a list of indicators containing objects representing methods displayed on ObejctInspector. When you click on a cell, you activate the appropriate service and you're done.Through an appropriate inheritance, you can easily access everything you need.All you need to do is make a component of it and you're done.The concept is probably to be polished, but it seems to be the solution. IMHO.
LMD Inspector (TLMDSimplePropInspector) from LMD Elpack: