Implementing tag panel controls in Delphi?

Please look at this screenshot.

alt text http://www.maclife.com/files/u18/Yep3-big.jpg

I think these are the main functions of such a tag panel:

1) Each tag on the panel is a standalone control and can be pressed

2) Automatic wrapping of lines when there is not enough space to display the next tag in the current line.

3) The border of a rounded rectangle for each tag is a nice feature.

I want to implement a similar function in Delphi, is there an existing control for this? If not, what is the best way to implement such control?

Thanks.

+5
source share
3 answers

Delphi, TFlowPanel . TButton TLinkLabel.

+7

There are two possible solutions for custom alignment in Delphi 7. You can create your own flow panel by getting a TCustomPanel and overriding the AlignControls () method, or you can set the alignment in alCustom and handle the OnAlignPosition event.

I think I would go for the TCustomPanel-derived variant. A TFlowPanel in Delphi 2007 form uses this option - I must admit, however, that I have never tried myself ...

+1
source

All Articles