wxGauge - Changing Colour?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
dominover
Knows some wx things
Knows some wx things
Posts: 32
Joined: Sun Sep 23, 2012 3:00 am

wxGauge - Changing Colour?

Post by dominover » Mon Jan 21, 2013 2:49 am

Heyall

Would anyone know if there is a a recent work-around to change the color of wxGauge?
It currently only gives me green. By changing the foreground and background color doesn't do anything in the properties.

I'm running Windows XP, SP3.
wxWidgets 2.8.12.

thanks

User avatar
doublemax
Moderator
Moderator
Posts: 14898
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxGauge - Changing Colour?

Post by doublemax » Mon Jan 21, 2013 9:20 am

Green? It's green under Win7, under XP it should be blue. But i think that's the color of the native control and can't be changed. If you need something else, you could create a custom control and draw one yourself.
Use the source, Luke!

dominover
Knows some wx things
Knows some wx things
Posts: 32
Joined: Sun Sep 23, 2012 3:00 am

Re: wxGauge - Changing Colour?

Post by dominover » Mon Jan 21, 2013 11:17 am

It looks like that's what I'll do. Green it is for now.

Thanks

Post Reply