Recent

Author Topic: Form designer on MAC: Design time problems.  (Read 628 times)

tk

  • Sr. Member
  • ****
  • Posts: 386
Form designer on MAC: Design time problems.
« on: February 11, 2026, 01:45:39 pm »
After updating to Lazarus 4.4, I am finding problems in the design mode on my MAC:
a) If a page control is placed on the form, it is not possible to select another tab by mouse. This is only possible by selecting the tab sheet component in the object inspector.
b) If the form has AutoScroll=True and its working area is reduced vertically (so that some placed components get hidden and the vertical scroll bar appears), it is no longer possible to select any component with the mouse and the visual selection indicators are displayed completely out of order, see the screenshot in the attachment.

I am not aware of these problems before the update, so I tried to track down to Lazarus 3.6 using fpcupdeluxe, but these errors still persisted.
Both in Windows and Linux everything is OK after the Lazarus update.

Demo project attached.

FPC: branch fixes-3.2
Lazarus: stable 4.4
MAC: M1 Tahoe 26.2

EDIT: This issue corresponds with https://forum.lazarus.freepascal.org/index.php/topic,73443.msg576022/topicseen.html#new. So maybe this is another compiler issue and even the fixes-3.2 does not help here. If that is the case, the question is what compiler version to use to get rid of all those bugs...
« Last Edit: February 11, 2026, 02:25:05 pm by tk »

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
Re: Form designer on MAC: Design time problems.
« Reply #1 on: February 11, 2026, 05:54:13 pm »
I can confirm a) (PageControl issue) with the trunk version of Lazarus and FPC 3.3.1:
Lazarus 4.99 (rev main_4_99-3421-g449b0a887c) FPC 3.3.1 x86_64-darwin-cocoa
This has been like this for as long as I can remember (only with Cocoa).
I always right click the PageControl and use the "Show Page" option (even though this is not convenient).

Have not tested AutoScroll (yet - I never use it).

I would recommend posting a bug for each of these individually in Bugtracker.

tk

  • Sr. Member
  • ****
  • Posts: 386
Re: Form designer on MAC: Design time problems.
« Reply #2 on: February 11, 2026, 09:29:44 pm »
There are even more MAC only issues that are present both at design time and run time, and again I was not aware of them before:
c) TEdit with password character set does not support taCenter alignment.
d) TScrollBox does not work correctly when Autoscroll=False and Vertscrollbar.Visible=True and Vertscrollbar.Range is set to smaller value than ScrollBox.ClientHeight.
I'll report all these when I have time to do so.

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
Re: Form designer on MAC: Design time problems.
« Reply #3 on: February 12, 2026, 09:37:23 am »
Since you're using stable for Lazarus:
Do you every now and then experience that you have to resize the code window or a form to get them to work properly when you just started a new project?
(see also this bug report)


Quite annoying at times, and with some (possibly related) issues: for example when I start a new application from scratch. When adding a control to a form, it appears on the Form, but not in the code.[size=78%] [/size]


Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
Re: Form designer on MAC: Design time problems.
« Reply #5 on: February 12, 2026, 03:15:34 pm »
Just noticed that the PageControl issue (clicking tabs in Designtime) appears to be working properly in the latest trunk.
Not sure how this happened, seems I overlooked it working with the latest trunk update (being used using the right click approach, due to it not working before).

 

TinyPortal © 2005-2018