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

about TStyledToolbar.SetButtonWidth #37

Closed marcuscde closed 1 month ago

marcuscde commented 1 month ago

Hi, i'm wondering if the "ResizeButtons" can be put into a conditional, and it can check a property of the toolbar, so it can be disabled if not wanted? This will make it so the buttons can have different widths if needed.

Thanks

carloBarazzetta commented 1 month ago

StyledToolbar works as a standard Toolbar (without ShowCaption enabled): when you resize a toolbutton all buttons of the toolbar resize at the same value, forcing the toolbar ButtonWidth property. The standard toolbar have different button size when ShowCaption is True, based on Caption size of every button, but I hate this... Notice that StyledToolbar inherits from FlowPanel, so you can implement a Toolbar using a FlowPanel, adding TSyledButtons and define size of every single button as you want...

carloBarazzetta commented 1 month ago

Resolved?

marcuscde commented 1 month ago

Yes, thanks

From: Carlo Barazzetta @.> Sent: Sunday, September 15, 2024 11:51 PM To: EtheaDev/StyledComponents @.> Cc: marcuscde @.>; Author @.> Subject: Re: [EtheaDev/StyledComponents] about TStyledToolbar.SetButtonWidth (Issue #37)

Resolved?

— Reply to this email directly, view it on GitHub https://github.com/EtheaDev/StyledComponents/issues/37#issuecomment-2352133295 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BBZYOI4TD7S6Z5G622Y2P7LZWZ5WJAVCNFSM6AAAAABNHCRQB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJSGEZTGMRZGU . You are receiving this because you authored the thread. https://github.com/notifications/beacon/BBZYOI7NNV2OLHBSQMNTACLZWZ5WJA5CNFSM6AAAAABNHCRQB2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUMGK2K6.gif Message ID: @. @.> >