Recent

Author Topic: Lazarus 1.2 Form resizing error (Linux)  (Read 12195 times)

JD

  • Hero Member
  • *****
  • Posts: 1913
Lazarus 1.2 Form resizing error (Linux)
« on: March 18, 2014, 10:35:17 am »
Hi there,

I just realized that in design mode, the form always shrinks to its default size whenever one is placing controls on it. So after each control is placed on the form, one has to manually resize the form. This only seems to occur in Linux.

Any ideas how to solve this problem?

Thanks,

JD
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #1 on: March 18, 2014, 12:08:17 pm »
I've spotted that problem with gtk2 ide only and only on Linux Mint Cinnamon. What is your distro and window manager ?

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #2 on: March 18, 2014, 01:39:14 pm »
I've spotted that problem with gtk2 ide only and only on Linux Mint Cinnamon. What is your distro and window manager ?

Linux Mint 16 32-bit / Cinnamon 2.0
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #3 on: March 18, 2014, 03:01:35 pm »
So it's problem with newest mint window manager Mutter.

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #4 on: March 18, 2014, 04:34:45 pm »
So it's problem with newest mint window manager Mutter.

Are you using Mint? If so how did you get around the problem?
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #5 on: March 18, 2014, 04:36:07 pm »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #6 on: March 18, 2014, 05:33:17 pm »
@JD: zeljko committed a fix to trunk Lazarus:
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&revision=44459

Thanks BigChimp. So I guess I just need to replace the old qtobject.inc file on my system with this one? Lots of thanks to zeljko for his good work too.
« Last Edit: March 18, 2014, 05:44:52 pm by JD »
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #7 on: March 18, 2014, 07:39:22 pm »
@JD: zeljko committed a fix to trunk Lazarus:
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&revision=44459

@BigChimp, that patch is for qt lcl not for gtk2. Qt didn't have problems with window sizes, only gtk2.
Anyway, I'll try to fix that ugly behaviour for gtk2 too during weekend.

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #8 on: March 18, 2014, 10:57:16 pm »
@JD: zeljko committed a fix to trunk Lazarus:
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&revision=44459

@BigChimp, that patch is for qt lcl not for gtk2. Qt didn't have problems with window sizes, only gtk2.
Anyway, I'll try to fix that ugly behaviour for gtk2 too during weekend.

Much appreciated Zeljko. I'll wait for your fix. Thanks a million.
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #9 on: March 20, 2014, 11:04:59 am »
@zeljko, sorry, was a bit too optimistic there, I suppose...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #10 on: March 25, 2014, 10:00:23 am »
@zeljko have you found the time to write a fix for gtk2. Thanks.  :D
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #11 on: March 29, 2014, 11:25:07 am »
Any news?  :D
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #12 on: March 29, 2014, 02:24:54 pm »
Any news?  :D
No, and not sure that it will be an easy fix since gtk2 sizing code in gtk2-lcl is pretty big mess. I've tried last weekend to debug it but could not find solution.Problem is that mentioned window manager sends much more size messages than others , and such messages are out of order so that's why form loose it's size.

Rails

  • Guest
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #13 on: March 29, 2014, 03:52:26 pm »
Problem is that mentioned window manager sends much more size messages than others , and such messages are out of order so that's why form loose it's size.
[/quote]

Sounds like a Mutter user should file a bug report.

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus 1.2 Form resizing error (Linux)
« Reply #14 on: March 29, 2014, 05:43:54 pm »
Problem is that mentioned window manager sends much more size messages than others , and such messages are out of order so that's why form loose it's size.

Sounds like a Mutter user should file a bug report.
[/quote]

No, qt-lcl works fine.
I think that problem is in our gkt2-lcl sizing code which use non-standard way of sizing handles . We use cached sizing and that probably causes problem.
Basically, our gtk2-lcl implementation have problem with any compositing window manager (eg. compiz), but this one is ugliest :)

 

TinyPortal © 2005-2018