wxSystemColour with Windows 10

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
yukomkom
Earned a small fee
Earned a small fee
Posts: 12
Joined: Mon Nov 07, 2016 10:19 am

wxSystemColour with Windows 10

Post by yukomkom »

Hi guys,

I've been working on Windows 10 with wxWidgets 3.0.2.

I had to create custom control very similar to button. While working on it I encountered with absence of system colour for focusing on hovering. When I hover the button (as on image) I have blue borders and light blue background.
Image

Can someone give me a piece of hint what should I use to get those system colours?
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSystemColour with Windows 10

Post by doublemax »

Assuming you already tried various colors from wxSystemSettings, maybe wxRendererNative::DrawPushButton helps.
http://docs.wxwidgets.org/trunk/classwx ... 19268de331
Use the source, Luke!
yukomkom
Earned a small fee
Earned a small fee
Posts: 12
Joined: Mon Nov 07, 2016 10:19 am

Re: wxSystemColour with Windows 10

Post by yukomkom »

Thanks, but unfortunately, it didn't help. I couldn't find which colours are used...
Post Reply