Hi guys,
I've been searching through the documentation and couldn't find the system colour of the focused control (let's say wxButton) on Windows. I use wxWidgets 3.0.2. Please, help.
System focused colour Topic is solved
Re: System focused colour
wxSystemSettings::GetColour( wxSYS_COLOUR_BTNHIGHLIGHT ) might work.
http://docs.wxwidgets.org/trunk/classwx ... f2a19bd804
However, as Windows 7 uses gradients as background, it might not return a valid color.
Depending on what you're trying to do, wxRendererNative could be useful:
http://docs.wxwidgets.org/trunk/classwx ... ative.html
http://docs.wxwidgets.org/trunk/classwx ... f2a19bd804
However, as Windows 7 uses gradients as background, it might not return a valid color.
Depending on what you're trying to do, wxRendererNative could be useful:
http://docs.wxwidgets.org/trunk/classwx ... ative.html
Use the source, Luke!
Re: System focused colour
I'm writing a custom control very similar to button and I need same behaviour as wxButton when focusing and hovering with mouse. I want to use Windows system colour for focusing control to draw borders of my custom control focused with it.
Same with hovering colour, however I haven't searched for it yet, so let's leave it in this topic.
Same with hovering colour, however I haven't searched for it yet, so let's leave it in this topic.
Re: System focused colour
All the colors you get through wxSystemSettings::GetColour() is the best you can get. If that's not enough, you'll have to improvise.
Use the source, Luke!