Recent

Author Topic: DockedFormEditor trouble  (Read 4472 times)

alpine

  • Hero Member
  • *****
  • Posts: 1298
DockedFormEditor trouble
« on: December 18, 2022, 11:05:08 am »
Hello there, recently I am experiencing some strange effect in Lazarus docked form editor, here is what happens: https://youtu.be/XJne6V1WIps

Lazarus 2.2.2 (rev lazarus_2_2_2) FPC 3.2.2 i386-win32-win32/win64

It seems the form editor enters an infinite loop recalculating the layout again and again because of the resize. It happens on some forms, on others it doesn't.

I've tried to simulate this on a smaller scale (out of that project) but failed. Anyone experienced something similar? Any ideas what property can cause this?
"I'm sorry Dave, I'm afraid I can't do that."
—HAL 9000

alpine

  • Hero Member
  • *****
  • Posts: 1298
Re: DockedFormEditor trouble
« Reply #1 on: December 18, 2022, 11:43:31 am »
I think I found something: On a fresh new form it is enough to change the Form.Align property to something different than alNone and the form starts growing indefinitely.

Also, when the form has BorderStyle of bsNone, resizing it gives an inexact result, see attached picture.
"I'm sorry Dave, I'm afraid I can't do that."
—HAL 9000

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: DockedFormEditor trouble
« Reply #2 on: December 19, 2022, 09:09:35 am »
Lazarus 2.2.4 (rev lazarus_2_2_4) FPC 3.2.2 x86_64-win64-win32/win64

I can confirm this behavior, as soon as you switch from alNone/alCustom to something stupid what you not should use for a mainform, the designer go crazy resizing all over.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

Manuel Santana

  • Newbie
  • Posts: 3
Re: DockedFormEditor trouble
« Reply #3 on: October 02, 2023, 03:09:22 am »
I have the same problem, but found out that is happening only on Windows. On Linux Mint Debian Edition 6 with same Lazarus version is not happening.

n7800

  • Full Member
  • ***
  • Posts: 173
Re: DockedFormEditor trouble
« Reply #4 on: January 29, 2024, 09:20:15 pm »
Hello there, recently I am experiencing some strange effect in Lazarus docked form editor, here is what happens: https://youtu.be/XJne6V1WIps

Lazarus 2.2.2 (rev lazarus_2_2_2) FPC 3.2.2 i386-win32-win32/win64

It seems the form editor enters an infinite loop recalculating the layout again and again because of the resize. It happens on some forms, on others it doesn't.

If this is still relevant to you, I would advise just opening this project in the new Lazarus 3.0. This issue may have already been fixed.

n7800

  • Full Member
  • ***
  • Posts: 173
Re: DockedFormEditor trouble
« Reply #5 on: January 29, 2024, 09:21:11 pm »
I think I found something: On a fresh new form it is enough to change the Form.Align property to something different than alNone and the form starts growing indefinitely.
I can confirm this behavior, as soon as you switch from alNone/alCustom to something stupid what you not should use for a mainform, the designer go crazy resizing all over.

I can confirm too, this still there in trunk (at least in win32 and gtk2). There is already an issue on the bug tracker https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39884.

n7800

  • Full Member
  • ***
  • Posts: 173
Re: DockedFormEditor trouble
« Reply #6 on: January 29, 2024, 09:21:45 pm »
Also, when the form has BorderStyle of bsNone, resizing it gives an inexact result, see attached picture.

This is no longer reproduced in the trunk - the bisection showed that this was fixed somewhere on 02-10-22 (there are several revisions that do not compile, so it is difficult to say which one fixed it).

 

TinyPortal © 2005-2018