EtheaDev/StyledComponents

A suggestion for TStyledCategoryButtons

Closed this issue · 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

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

I want the icon in this position
7041a43ec1621f9f82dbbeaee06b5700

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.