Lazarus

Programming => LCL => Topic started by: zoltanleo on April 22, 2021, 11:10:02 am

Title: TGroupBox does not have ParentBackground property (Linux)
Post by: zoltanleo 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)
Title: Re: TGroupBox does not have ParentBackground property (Linux)
Post by: lucamar on April 22, 2021, 11:25:06 am
It should be there, according to this other thread (https://forum.lazarus.freepascal.org/index.php/topic,54190.0.html). Are you sure your LCL is from trunk?

Either that or it's Windows-only ... :-?
Title: Re: TGroupBox does not have ParentBackground property (Linux)
Post by: zoltanleo 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
Title: Re: TGroupBox does not have ParentBackground property (Linux)
Post by: lucamar 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 ...
Title: Re: TGroupBox does not have ParentBackground property (Linux)
Post by: zoltanleo on April 22, 2021, 12:57:22 pm
Hi Lucamar

Thank U for your opinion and your support  :)
Title: Re: TGroupBox does not have ParentBackground property (Linux)
Post by: Michl 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.
Title: Re: TGroupBox does not have ParentBackground property (Linux)
Post by: wp 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.
Title: Re: TGroupBox does not have ParentBackground property (Linux)
Post by: zoltanleo on April 22, 2021, 03:37:03 pm
OK, I'll try later
Title: Re: TGroupBox does not have ParentBackground property (Linux)
Post by: zoltanleo 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.
TinyPortal © 2005-2018