Recent

Author Topic: Alignment of toolbuttons not working since Lazarus 1.8.4  (Read 2605 times)

stem

  • Jr. Member
  • **
  • Posts: 88
Alignment of toolbuttons not working since Lazarus 1.8.4
« on: July 21, 2018, 11:36:28 pm »
Hi,

I've just updated my Lazarus installation from 1.8.2 to 1.8.4 (Windows). Now I've noticed, that the alignment of toolbuttons in toolbars is not working anymore:

Code: Pascal  [Select][+][-]
  1. myToolButton.Align := alRight;

With Lazarus 1.8.2, the position of this toolbutton is at the right end of the toolbar. With Lazarus 1.8.4, no effect is visible.

Am I doing something wrong?


Thank you

stem


ASerge

  • Hero Member
  • *****
  • Posts: 2212
Re: Alignment of toolbuttons not working since Lazarus 1.8.4
« Reply #2 on: July 22, 2018, 12:59:16 am »
With Lazarus 1.8.2, the position of this toolbutton is at the right end of the toolbar. With Lazarus 1.8.4, no effect is visible.
If you need to align some of the buttons to the right, I recommend to do so:
1. Put Panel with Align = alTop
2. Put on it two Panels with aligns alRight and alClient
3. Put on each Panel (from 2) a separate ToolBar
4. For all panels set AutoSize = True and BevelOuter = bvNone

stem

  • Jr. Member
  • **
  • Posts: 88
Re: Alignment of toolbuttons not working since Lazarus 1.8.4
« Reply #3 on: July 22, 2018, 10:19:38 am »
Thank you, now it works!

Stem

 

TinyPortal © 2005-2018