Recent

Author Topic: TGroupBox does not have ParentBackground property (Linux)  (Read 1402 times)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
TGroupBox does not have ParentBackground property (Linux)
« on: April 22, 2021, 11:10:02 am »
Hi guys.

I am writing my project on Windows. When I try to build this project on Linux, I get an error that the groupbox component does not have a ParentBackground property (see attachment).

What's the matter, please tell me?

ps. Using fpc trunk and Laz (r.65050)
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: TGroupBox does not have ParentBackground property (Linux)
« Reply #1 on: April 22, 2021, 11:25:06 am »
It should be there, according to this other thread. Are you sure your LCL is from trunk?

Either that or it's Windows-only ... :-?
« Last Edit: April 22, 2021, 11:27:49 am by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: TGroupBox does not have ParentBackground property (Linux)
« Reply #2 on: April 22, 2021, 11:55:49 am »
Hi Lucamar.

Yes, I'm sure.

When I set the groupbox parameter to false True, the mention of this property disappears in the * dfm file (see attachment).

It seems to me that in Linux this line should be ignored. I think this is a bug.

Test case:
- create new project on Windows
- put the groupbox on the form
- set the property to Groupbox.ParentBackgroud = false and save project
- open a project on Linux
« Last Edit: April 22, 2021, 12:05:19 pm by zoltanleo »
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: TGroupBox does not have ParentBackground property (Linux)
« Reply #3 on: April 22, 2021, 12:22:57 pm »
When I set the groupbox parameter to false True, the mention of this property disappears in the * dfm file (see attachment).

That's normal, if the default state is True; properties in their default state are (usually) not included in the lfm

Quote
It seems to me that in Linux this line should be ignored. I think this is a bug.

Yes, if it not supported in a given widgetset it should be either silently ignored or a warning (not an error!) about the unsupported state given ( don't remember which, sorry). Unfortunately I've not got a trunk install here to test, sorry again.

Let's hope someone with more knowledge than I chimes in ...
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: TGroupBox does not have ParentBackground property (Linux)
« Reply #4 on: April 22, 2021, 12:57:22 pm »
Hi Lucamar

Thank U for your opinion and your support  :)
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

Michl

  • Full Member
  • ***
  • Posts: 226
Re: TGroupBox does not have ParentBackground property (Linux)
« Reply #5 on: April 22, 2021, 03:08:24 pm »
It sounds, you have a broken IDE. Please make a svn cleanup and build a clean IDE. Then it should work. This property is not hidden by widgetset.
Code: [Select]
type
  TLiveSelection = (lsMoney, lsChilds, lsTime);
  TLive = Array[0..1] of TLiveSelection;

wp

  • Hero Member
  • *****
  • Posts: 11832
Re: TGroupBox does not have ParentBackground property (Linux)
« Reply #6 on: April 22, 2021, 03:27:33 pm »
Test case:
- create new project on Windows
- put the groupbox on the form
- set the property to Groupbox.ParentBackgroud = false and save project
- open a project on Linux
I followed exactly these steps and there is no problem at all (both Laz versions are at r65050). Please do what Michl recommended.

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: TGroupBox does not have ParentBackground property (Linux)
« Reply #7 on: April 22, 2021, 03:37:03 pm »
OK, I'll try later
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: TGroupBox does not have ParentBackground property (Linux)
« Reply #8 on: April 22, 2021, 09:10:41 pm »
I followed exactly these steps and there is no problem at all (both Laz versions are at r65050). Please do what Michl recommended.
You were right. I compiled the lazarus trunk in a new directory and the error went away.

Thank you all for the helpful advice.
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

 

TinyPortal © 2005-2018