How best to create a TPanel with a close 'cross' button in the top right?
问题 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? 回答1: I wrote a control for you. unit CloseButton; interface uses Windows, Messages, SysUtils,