StyledComponents icon indicating copy to clipboard operation
StyledComponents copied to clipboard

A suggestion for TStyledCategoryButtons

Open duancy opened this issue 1 year ago • 3 comments

TStyledCategoryButtons It is recommended to add an icon position property, which can be customized to the left or right of the Categorys, similar to the NavMenu on the web web_nav

duancy avatar Apr 30 '24 02:04 duancy

You can already do it: look at the StyledCategorybuttonsDemo. You can change position for every buttons using ImageAlignment, and control the spacing using ImageMargins. image

carloBarazzetta avatar Apr 30 '24 07:04 carloBarazzetta

I want the icon in this position 7041a43ec1621f9f82dbbeaee06b5700

duancy avatar Apr 30 '24 07:04 duancy

Sorry but the title of the Categories are controlled by the VCL component: My version inherites from that and redraw only the button items, not the title. You can make your own menu, using a Panel and a ButtonGroup for every Category.

carloBarazzetta avatar Apr 30 '24 09:04 carloBarazzetta