Recent

Author Topic: [SOLVED] Toolbar and alignment ?  (Read 643 times)

Espectr0

  • Full Member
  • ***
  • Posts: 238
[SOLVED] Toolbar and alignment ?
« on: February 20, 2023, 07:52:37 pm »
Hola Gente!

A doubt, can the buttons be centered on the toolbar (something like the Windows 11 taskbar) ?

Thanks!
« Last Edit: February 20, 2023, 08:30:01 pm by Espectr0 »

wp

  • Hero Member
  • *****
  • Posts: 13412
Re: Toolbar and alignment ?
« Reply #1 on: February 20, 2023, 08:03:16 pm »
Not the buttons, but the toolbar can be centered.

- Add the buttons to the toolbar.
- Set the toolbar's Align to alNone and AutoSize to true.
- Use the Anchor Editor to anchor the toolbar to the top of the form and to center it horizontally.
- Done.

Or, if you want to have a bar running across the entire screen width with centered buttons, put this toolbar into a top-aligned and auto-sized panel.
« Last Edit: February 20, 2023, 08:05:12 pm by wp »

Espectr0

  • Full Member
  • ***
  • Posts: 238
Re: Toolbar and alignment ?
« Reply #2 on: February 20, 2023, 08:29:49 pm »
Brilliant!

It's what I needed,

thanks wp.

 

TinyPortal © 2005-2018