How best to create a TPanel with a close 'cross' button in the top right?

后端 未结 3 1553
温柔的废话
温柔的废话 2021-01-02 17:22

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 li

3条回答
  •  情歌与酒
    2021-01-02 17:52

    I'm sure you can find a ton of such a components available for free from Torry's or any other similar site... however, if you only need such a feature on a single panel, then drop an button onto panel, anchor it to top-right corner and youre done. If you also want to have "caption area" on that panel, then it might be bit more work...

    BTW if you have JVCL installed then you already have such a component installed - it is called TjvCaptionPanel or similar.

提交回复
热议问题