Recent

Author Topic: [Solved] Unwanted Scroll Bars on Form  (Read 1400 times)

Wilko500

  • Full Member
  • ***
  • Posts: 180
[Solved] Unwanted Scroll Bars on Form
« on: May 01, 2024, 01:20:47 am »
This form is driving me nuts!!!  This is a subform called from the main form with

Code: Pascal  [Select][+][-]
  1. procedure TfrmAuroraDataUpload.Button1Click(Sender: TObject);
  2. begin
  3.   frmSettings.ShowModal;
  4. end;  

and then closed with

Code: Pascal  [Select][+][-]
  1. procedure TfrmSettings.cmdSettingsExitClick(Sender: TObject);
  2. begin
  3.     frmSettings.Close;
  4. end;  

No other controls are clicked. There is no code on any of the form events.  On first click the form is shown as in the top picture, no scroll bars.  After I close the form and re open it the form has scrolled and has scroll bars. As far as I have been able to check there are no controls beyond the limits of the form. I do not understand why the form is ok on first show but not on subsequent shows. 
Help please
Lazarus 3.2 FPC 3.2.2 MacOS Monterey 12.7.4
« Last Edit: May 01, 2024, 12:02:02 pm by Wilko500 »
MacBook Pro mid 2015 with OS Monterey 12.7.6
FPC 3.2.3 Lazarus 3.7
FPC 3.2.2 Lazarus 3.4

Wallaby

  • Full Member
  • ***
  • Posts: 132
Re: Unwanted Scroll Bars on Form
« Reply #1 on: May 01, 2024, 01:59:17 am »
I believe it's been fixed in Laz 3.3: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/413f1659e6400f6e0486cae00676a6f5bd223c22

You may want to use FpcupDeluxe to build FPC 3.2.3 and Lazarus 3.3 to have the latest fixes; or wait until Lazarus 3.4 is out.

Wilko500

  • Full Member
  • ***
  • Posts: 180
Re: Unwanted Scroll Bars on Form
« Reply #2 on: May 01, 2024, 12:01:20 pm »
Thank you.  I couldn't find FPC 3.2.3/Lazarus 3.3 in FpcupDeluxe but I created a new install from trunk.  It showed as FPC 3.3.1/Lazarus 3.99. 

But it is working now.  I note that the IDE scroll bars problem is also fixed.  I had assumed that that was just another quirk of the MacOs implementation.

I will wait for the next official release for my main development environment.

Thanks again
MacBook Pro mid 2015 with OS Monterey 12.7.6
FPC 3.2.3 Lazarus 3.7
FPC 3.2.2 Lazarus 3.4

 

TinyPortal © 2005-2018