There are several third-pary controls (such as the Raize Components) which have a close ‘cross’ button ‘option’ (eg the page control). My requirement is simpler, I’d like to plonk a cross ‘button’ aligned top right on to a TPanel and access its clicked event. Is there either a simple way of doint this without creating a TPanel descendent, or is there a paid or free library component that I can use?
There are several third-pary controls (such as the Raize Components ) which have a
Share
I wrote a control for you.
Sample (with and without themes enabled):
Just put this in a
TPanelat the top-right corner and setAnchorsto top and right.