Recent

Author Topic: [solved] TToolBar - how to center buttons?  (Read 931 times)

Nicole

  • Hero Member
  • *****
  • Posts: 1303
[solved] TToolBar - how to center buttons?
« on: July 14, 2022, 02:04:14 pm »
Please see attached image:
I want to center the buttons vertically and cannot find the item for it.
How can I do it?

Thanks!
« Last Edit: July 16, 2022, 08:24:31 am by Nicole »

wp

  • Hero Member
  • *****
  • Posts: 13334
Re: TToolBar - how to center buttons?
« Reply #1 on: July 14, 2022, 02:13:12 pm »
They ARE centered. The caption is bottom-aligned (that's how it should be), and the icons are centered vertically in the remaining space above the captions - compare the "neu" with "öffnen".

BTW, there is also the option TToolbar.List which put the captions to the right of the icons.

Nicole

  • Hero Member
  • *****
  • Posts: 1303
Re: TToolBar - how to center buttons?
« Reply #2 on: July 14, 2022, 03:29:31 pm »
Thank you for your reply.
To put it differently: How can I shift the ToolButtons some pixels down?
I attach another screenshot, where I force the borders of the toolbuttons to be seen.

The bright orange shows the Toolbar, the darker orange the parent panel.

Nicole

  • Hero Member
  • *****
  • Posts: 1303
Re: TToolBar - how to center buttons?
« Reply #3 on: July 14, 2022, 06:08:12 pm »
I found it:
The ButtonHigh height has to be the same as the ToolBar height.

 

TinyPortal © 2005-2018