Recent

Author Topic: [SOLVED] Issue with GroupBox background color  (Read 5371 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1055
[SOLVED] Issue with GroupBox background color
« on: September 14, 2012, 10:17:56 am »
Hi,

I have problems with set "uniform" background color for some controls
(like TGroupBox) on GTK2. See first attachment. This is default view.
So I tried set color from clDefault to clBtnFace on all controls.
GroupBox still have brighter color (2 attachment). I thought that
groupbox color is static, but changing it to clRed work (3
attachment). Any idea? What is the name of form default color? Because
if I leave default color on form and groupbox and set panel color to
"brighter" then I should get the same color for all controls

Regards
« Last Edit: September 14, 2012, 09:32:12 pm by Dibo »

zeljko

  • Hero Member
  • *****
  • Posts: 1734
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Issue with GroupBox background color
« Reply #1 on: September 14, 2012, 08:56:49 pm »
Have you tried to set clForm or clBackground to TPanel and TGroupBox ?

Dibo

  • Hero Member
  • *****
  • Posts: 1055
Re: Issue with GroupBox background color
« Reply #2 on: September 14, 2012, 09:31:58 pm »
Thanks! Changing color to clForm or clBackground on all controls (with form included) solved problem. But this is some kind of inconsistency. Controls which don't have transparency (e.g TLabel is transparent) but flat background, should have this same color by default.

 

TinyPortal © 2005-2018