EtheaDev / StyledComponents

Components similar to Delphi VCL Buttons, Toolbar, DbNavigator, BindNavigator, ButtonGroup and CategoryButtons with Custom Graphic Styles, and an advanced, full-customizable TaskDialog, also with animations!
Apache License 2.0
152 stars 34 forks source link

A suggestion for TStyledCategoryButtons #16

Closed duancy closed 5 months ago

duancy commented 5 months ago

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

carloBarazzetta commented 5 months ago

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

duancy commented 5 months ago

I want the icon in this position 7041a43ec1621f9f82dbbeaee06b5700

carloBarazzetta commented 5 months ago

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.