OSX background color of wx.StaticBox

Hi,

I’m playing around with GradientButton and AquaButton from the agw library. On OSX if you put things inside a StaticBox then the background colour changes to a slightly darker one. Neither GradientButton or AquaButton can handle this… is there a way I can extract that slightly darker color?

Just using GetBackgroundColor on the parent doesn’t work… it gives the correct background color, but its not the slightly darker one.

Best,

Soren

S�ren Nielsen wrote:

Hi,

I'm playing around with GradientButton and AquaButton from the agw
library. On OSX if you put things inside a StaticBox then the background
colour changes to a slightly darker one. Neither GradientButton or
AquaButton can handle this.. is there a way I can extract that slightly
darker color?

Just using GetBackgroundColor on the parent doesn't work.. it gives the
correct background color, but its not the slightly darker one.

I don't think there is any way to get that, at least not with the wx API. I think I have seen some code before to approximate that color value based on the real bg color, but I can't seem to find it now.

···

--
Robin Dunn
Software Craftsman