Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-09

Issue with GroupBox background color

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Krzysztof

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colors1.png
Type: image/png
Size: 8672 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120911/214f2bcf/attachment-0003.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: colors2.png
Type: image/png
Size: 6561 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120911/214f2bcf/attachment-0004.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: colors3.png
Type: image/png
Size: 7426 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120911/214f2bcf/attachment-0005.png>

Reply by email

Krzysztof
to Krzysztof

I found solution on forum. Problem solved when I set color to clForm or clBackground to all controls (with form included). 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.

Reply by email

zeljko
to Krzysztof
Krzysztof wrote 5 lines
I found solution on forum. Problem solved when I set color to clForm or clBackground to all controls (with form included). 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.

I've written that about testing clForm and/or clBackground (and glad that it works for you). It can be fixed in gtk2, but need some time because clBtnFace is hardcoded there at few places (from gtk1 times).

zeljko

Reply by email