Recent

Author Topic: [invalid] Laz 2.2 Color issue for new group boxes  (Read 2351 times)

Muso

  • Sr. Member
  • ****
  • Posts: 356
[invalid] Laz 2.2 Color issue for new group boxes
« on: July 21, 2021, 04:30:31 am »
I have an issue with the default settings of group boxes:

- add a new group box (or radio/check group) to a form

result: the property "Color" is at "clWindow". The IDE tells me that "clDefault" would be the default. So it appears as oif new group boxes are created with a non-default Color. Or the IDE is telling the wrong default.

I am using Lazarus 2.3.0 r65474 FPC 3.2.2 x86_64-win64-win32/win64 but that means the issue is also in Laz 2.2.

should I open a bug report?
« Last Edit: July 21, 2021, 01:37:35 pm by Muso »

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Laz 2.2 Color issue for new group boxes
« Reply #1 on: July 21, 2021, 05:56:06 am »
In case it matters, Lazarus 2.0.12 on Linux x86_64 sets the group box Color to clDefault.

Maybe it has been changed to resolve clDefault at design-time?
« Last Edit: July 21, 2021, 05:58:19 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.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Laz 2.2 Color issue for new group boxes
« Reply #2 on: July 21, 2021, 10:38:06 am »
- add a new group box (or radio/check group) to a form

result: the property "Color" is at "clWindow".
Cannot confirm: I add a TGroupBox to a new form, go to its Color property, and its value is clDefault.

Muso

  • Sr. Member
  • ****
  • Posts: 356
Re: Laz 2.2 Color issue for new group boxes
« Reply #3 on: July 21, 2021, 01:37:09 pm »
Cannot confirm: I add a TGroupBox to a new form, go to its Color property, and its value is clDefault.

Yes, this was false alarm. I set this color in my main form and therefore the color was inherited to its childs.

 

TinyPortal © 2005-2018