Forum > LCL

TToolbar button alignment (vertical arrangement)

(1/1)

howardpc:
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.

ASerge:

--- Quote from: howardpc on December 06, 2021, 04:04:45 pm ---Is there a way to set the alignment of such vertically stacked toolbuttons to be left-justified within the toolbar?

--- End quote ---
Only using TToolbar.OnPaintButton event, because the position of the text is hardcoded in the TToolButton.Paint procedure.

howardpc:
Thanks for digging into the sources for that!

Navigation

[0] Message Index

Go to full version