Lazarus

Programming => LCL => Topic started by: howardpc on December 06, 2021, 04:04:45 pm

Title: TToolbar button alignment (vertical arrangement)
Post by: howardpc on December 06, 2021, 04:04:45 pm
If you set a toolbar's Wrapable property to True you can have toolbuttons listed vertically.
Is there a way to set the alignment of such vertically stacked toolbuttons to be left-justified within the toolbar?
The default is for all buttons to be centred in the vertical array, and I don't see a way to alter this.
Although published by TToolBar, Childsizing properties for a toolbar seem to have no effect on the toolbutton positions.
Title: Re: TToolbar button alignment (vertical arrangement)
Post by: ASerge on December 06, 2021, 10:51:41 pm
Is there a way to set the alignment of such vertically stacked toolbuttons to be left-justified within the toolbar?
Only using TToolbar.OnPaintButton event, because the position of the text is hardcoded in the TToolButton.Paint procedure.
Title: Re: TToolbar button alignment (vertical arrangement)
Post by: howardpc on December 06, 2021, 11:18:44 pm
Thanks for digging into the sources for that!
TinyPortal © 2005-2018