I want to make a new component.
How can I hide the Caption
property in the object inspector?
I use TPanel
as ancestor class.
Use TCustomPanel
as the base class and publish the properties you need.
by using UnlistPublishedProperty. At this link http://delphihaven.wordpress.com/2009/05/17/tip-removing-a-property-at-design-time/ you can find a fully explained example.
LE: as good practice you should create another class, descendant of TCustomPanel and publish only the properties you need/want.
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