I am using a property inspector (for example the nice JvInspector in the JVCL library) which nicely lets me view and edit the published properties of my class 'TMyClass'. TMyClass
descends from TFrame
and has a few published properties that are the only ones that I require to see and edit. Of course TFrame
has lots of VCL properties, all published, which I see too.
How can I suppress the ancestor property RTTI and just leave my own published properties? I'm using XE3 so the world is my oyster... maybe.
Derive your class from TCustomFrame
, and from your class publish only those properties you'll need. Although you can't basically hide already published properties, there's a lot of them that are protected and that will stay hidden by using of TCustomFrame
class as the ancestor for your own class.
That's how almost every control in VCL is composed in the class hierarchy. For instance, TLabel
is a TCustomLabel
descendant, whose only role in the class chain is to publish properties you can see in the Object Inspector.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With