Recent

Author Topic: ButtonPanel and AutoSize  (Read 1804 times)

krzynio

  • Jr. Member
  • **
  • Posts: 99
    • Krzynio's home page
ButtonPanel and AutoSize
« on: January 24, 2018, 11:32:51 am »
When I put ButtonPanel on the bottom of the form and form.AutoSize is Checked then probably the height of ButtonPanel is not considered during form height automatic calculation and ButtonPanel overlaps with other controls  on the form which normally are placed above the ButtonPanel.
Is it a bug or I'am doing something wrong?
Ubuntu 23.10 x64, / Windows 11 PL - latest updates
Lazarus 2.2.6, FPC 3.2.2

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: ButtonPanel and AutoSize
« Reply #1 on: January 24, 2018, 01:03:17 pm »
Have you tried anchoring the top of the buttonpanel to the bottom of the appropriate control above it?

krzynio

  • Jr. Member
  • **
  • Posts: 99
    • Krzynio's home page
Re: ButtonPanel and AutoSize
« Reply #2 on: January 24, 2018, 09:12:22 pm »
Thank you.
I tried by unsuccessfully. I managed by putting all controls on the Panel added above the ButtonPanel.
TBW: I found a good manual about anchoring here: http://wiki.freepascal.org/Autosize_/_Layout
BR
Ubuntu 23.10 x64, / Windows 11 PL - latest updates
Lazarus 2.2.6, FPC 3.2.2

 

TinyPortal © 2005-2018