Recent

Author Topic: TToolbar button alignment (vertical arrangement)  (Read 4075 times)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
TToolbar button alignment (vertical arrangement)
« 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.
« Last Edit: December 06, 2021, 04:25:02 pm by howardpc »

ASerge

  • Hero Member
  • *****
  • Posts: 2240
Re: TToolbar button alignment (vertical arrangement)
« Reply #1 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.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: TToolbar button alignment (vertical arrangement)
« Reply #2 on: December 06, 2021, 11:18:44 pm »
Thanks for digging into the sources for that!

 

TinyPortal © 2005-2018