* * *

Author Topic: ButtonPanel and AutoSize  (Read 845 times)

krzynio

  • Jr. Member
  • **
  • Posts: 68
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?
Lazarus version: trunk. FPC version: 3.0.4. OS: Linux Debian Testing x64 with XFCE 4.12 and Windows 10 x64 version: 1709

howardpc

  • Hero Member
  • *****
  • Posts: 2808
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: 68
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
Lazarus version: trunk. FPC version: 3.0.4. OS: Linux Debian Testing x64 with XFCE 4.12 and Windows 10 x64 version: 1709

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus