TCustomPanel - Default Caption
Posted on 2004-10-11
I've created a component that is a descendant of TCustomPanel. The problem I currently have with it is the fact that it has a caption (which I've never understood for TPanels anyway!), and the caption is the component's name.
I want to remove that or set it to '' when created. I've added code (Caption:='') into the create event of the component, after the inherited call, and all the other code too, but it makes no difference.
Can someone advise me?