Recent

Author Topic: Strange behaviour between command line and KDE start menu  (Read 1971 times)

Wolfgang Siebeck

  • Newbie
  • Posts: 6
Strange behaviour between command line and KDE start menu
« on: April 15, 2020, 03:50:28 pm »
Thanks for accepting me to the forum. I have a problem with the display of forms, depending on the start of the application. The height of a textedit box is different depending on starting the application from the command line / debugger or via the start menu of KDE / Link on the desktop.
The problem can be shown with the appended test application. Just build the application and start it by one of the two ways above. A single mouse-click reveals the problem.
Trying to align labels and editboxes is not easy, I had to use some thing like "lTZ.Top := edtTZ.Top + edtTZ.Height div 2 - lTZ.Height div 2;" as a workaround.

Any ideas someone?

Thanks a lot from Thailand,

Wolfgang
« Last Edit: April 15, 2020, 04:38:50 pm by Wolfgang Siebeck »

Wolfgang Siebeck

  • Newbie
  • Posts: 6
Re: Strange behaviour between command line and KDE start menu
« Reply #1 on: April 15, 2020, 04:20:52 pm »
Oops, I forgot to describe my environment.

Kubuntu 18.04 on Linux xxx 5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Lazarus 2.0.6
gtk-theme-name: "Breeze"

Wolfgang

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Strange behaviour between command line and KDE start menu
« Reply #2 on: April 16, 2020, 06:53:17 pm »
I cannot reproduce on my Manjaro with Lazarus 2.1.0 (I always use trunk). You can try if that version fixes it, and if yes please wait for the next stable release or yeah, use trunk.

zeljko

  • Hero Member
  • *****
  • Posts: 1811
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Strange behaviour between command line and KDE start menu
« Reply #3 on: April 16, 2020, 07:02:19 pm »
Thanks for accepting me to the forum. I have a problem with the display of forms, depending on the start of the application. The height of a textedit box is different depending on starting the application from the command line / debugger or via the start menu of KDE / Link on the desktop.
The problem can be shown with the appended test application. Just build the application and start it by one of the two ways above. A single mouse-click reveals the problem.
Trying to align labels and editboxes is not easy, I had to use some thing like "lTZ.Top := edtTZ.Top + edtTZ.Height div 2 - lTZ.Height div 2;" as a workaround.

Any ideas someone?

Please test with lazarus trunk minimum r63001. I've implemeted accurate frame under x11 for gtk2 today.

Wolfgang Siebeck

  • Newbie
  • Posts: 6
Re: Strange behaviour between command line and KDE start menu
« Reply #4 on: April 17, 2020, 07:38:14 am »
Please test with lazarus trunk minimum r63001. I've implemeted accurate frame under x11 for gtk2 today.

Just updated to Lazarus 2.0.8, the results are the same. I appended a screenshot which shows (from top to bottom) the form in the designer, started from the menu, and started from the command line. Now going to find the trunk version...

Wolfgang Siebeck

  • Newbie
  • Posts: 6
Re: Strange behaviour between command line and KDE start menu
« Reply #5 on: April 17, 2020, 08:26:26 am »
Now going to find the trunk version...

Got it, it is up and running. A further note: for the edit control "Autosize" is set to True, if that should matter. But the behaviour is exactly the same like in the screenshot in my previous post.

Appended is the About of the tested Lazarus version.

Kind regards, Wolfgang

zeljko

  • Hero Member
  • *****
  • Posts: 1811
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Strange behaviour between command line and KDE start menu
« Reply #6 on: April 17, 2020, 08:35:37 am »
As I can see it's standard KDE's breeze theme which have bit bigger controls like TEdit, TCheckBox, TRadioBox, TComboBox.
First screenshoot (form designer) isn't ok , border of TEdit isn't visible, and I know if heigth < 28 under breeze it's invisible.

Wolfgang Siebeck

  • Newbie
  • Posts: 6
Re: Strange behaviour between command line and KDE start menu
« Reply #7 on: April 17, 2020, 01:30:36 pm »
First screenshoot (form designer) isn't ok , border of TEdit isn't visible, and I know if heigth < 28 under breeze it's invisible.

Added another Editbox, this time Autosize=False. The default height set from 25 to 40, still no border to see  :(

zeljko

  • Hero Member
  • *****
  • Posts: 1811
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Strange behaviour between command line and KDE start menu
« Reply #8 on: April 17, 2020, 02:29:53 pm »
First screenshoot (form designer) isn't ok , border of TEdit isn't visible, and I know if heigth < 28 under breeze it's invisible.

Added another Editbox, this time Autosize=False. The default height set from 25 to 40, still no border to see  :(

Then it's something wrong with gtk2 theme. I'll try to reproduce it somehow

Wolfgang Siebeck

  • Newbie
  • Posts: 6
Then it's something wrong with gtk2 theme. I'll try to reproduce it somehow

In the meantime I upgraded to Kubuntu 20.04 and Lazarus 2.0.8. Everything looks fine there, but I still have to set Autosize to False, otherwise the height will be too low. A bit anoying, but workable. Thank you all for helping me.

tetrastes

  • Hero Member
  • *****
  • Posts: 711
Re: Strange behaviour between command line and KDE start menu
« Reply #10 on: April 27, 2020, 11:39:27 pm »
There is nothing of the above at Fedora 31 LXQt with Breeze theme for Qt, gtk2, gtk3. Lazarus 2.0.8, fpc 3.0.4 for x86_64.
Apps are gtk2 started from command line and desktop. Maybe this is KDE problem?

 

TinyPortal © 2005-2018