Recent

Author Topic: Problems with form.AutoScroll  (Read 67 times)

OH1KH

  • Jr. Member
  • **
  • Posts: 90
Problems with form.AutoScroll
« on: May 09, 2026, 12:07:44 pm »
I started to redesign old form view moving items from various TPanels to one TPanel for all. The from was designed over 10 years ago with Lazarus version used then.
During move and renew anchors Laz 4.6 designer crashed so many time that I had to start committing git after every move done for easier return.

Crash locked Laz so that it had to be killed to get new start and quite often it did not start any more giving just error splash about  positioning something.
Wish I would have saved a screencopy.
How ever splash had top,left,righ etc. values, I assume. Sometimes there was a negative value around -32000.

Then just "git checkout ." allowed Laz start again wiping the last changes away.

Sometimes there were not crashes/start problems and compile went ok but program crashed at start immediately.
That happened only with GTK2 widgets compile. QT5 and QT6 compiles from same source worked ok.

Finally after 40 git commits I got all three GTK2,QT5 and QT6 run without problems and also got view that keeps it's outlook without caps in case user changes font size.

I planned to make a GitLab issue from this but unfortunately my login was banned. I have right password there but they want to send check key to my email to be sure that I am me.
It is just that I have there an old email address that does not work any more. And it seems I have not entered any secondary email, or else the system does not work.
I gave up with issue reporting.

My OS is Fedora 43 LXDE/x11 with the latest Laz packages from them: Laz 4.6/fpc 3.22

Linux version 6.19.14-200.fc43.x86_64 (mockbuild@3d94b060593f4389857ed0a29daa3c69) (gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7), GNU ld version 2.45.1-4.fc43) #1 SMP PREEMPT_DYNAMIC Thu Apr 23 17:34:07 UTC 2026
 
Cqrlog Ver:Alpha_(142)_QT5 Build:1 Date:2026-05-07 LCL Version: 4.6.0.0

I already was happy with this as finally it works, but then a fiend reported that if he compiles my source it crashes at start if version has QT5 widgets (he does not have QT6 option). But GTK2 compiled version works.
That is just opposite way I had my problems GTK2 crashed, QT versions worked.

Difference is that his OS is Mint 22.3

Linux version 6.8.0-111-generic (buildd@lcy02-amd64-088) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026

Cqrlog Ver:Alpha_(142)_Gtk2 Build:1 Date:2026-05-07 LCL Version: 3.0.0.3


What I learned was that if I opened form.lfm and right at start of file changed "AutoScroll = True" to  "AutoScroll = False" and recompiled the crash disappeared.
I told him to test this and also he got running version but without scroll bars that are almost must with that form (in small monitors).

Also if Lazarus crashed and did not start any more same setting form's "AutoScroll = False" allowed Laz start again.

By Googling I found that there has been problems with AutoScroll in past (was it 2018?) and I think there is still a bug there in designer.
Maybe several.
One is that designer should not allow negative values appear to item positioning in any case, that seems to happen if items are moved.

Anyone other having similar problems?


P.S.
There is also difference in TPanel background between GTK2 and QT5/QT6
if color is clDefault QT version TPanel is transparent showing item behind through TPanel view, GTK2 is not transparent covering all items behind as should.
There is no checkbox "Transparency" in TPanel properties but it helps if you change color clDefault to clActiveBorder.
Then both GTK2 and QT panel backgrounds look same and non transparent.

Maybe bug, too?
--
Saku

 

TinyPortal © 2005-2018