Is there a way to disable the higlighting effect on a wxBitmapButton? [wxWidgets 3.1.3]

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
var_null
Earned a small fee
Earned a small fee
Posts: 14
Joined: Thu Feb 27, 2020 6:44 pm

Is there a way to disable the higlighting effect on a wxBitmapButton? [wxWidgets 3.1.3]

Post by var_null » Sat Mar 21, 2020 8:24 am

Hello, Is there a way to disable the blue highlighting effect on a wxBitmapButton when the cursor hovers over it and also when it is clicked?

Thanks
Last edited by var_null on Sat Mar 21, 2020 7:04 pm, edited 1 time in total.

er2joe
In need of some credit
In need of some credit
Posts: 8
Joined: Sun Mar 03, 2013 5:55 pm

Re: Is there a way to disable the higlighting effect on a wxBitmapButton? [wxWidgets 3.1.3]

Post by er2joe » Sat Mar 21, 2020 2:55 pm

Just looking at the documentation for wxButton, it looks like you could override the different bitmaps with a single one.

Might be a better way, but that would work.

var_null
Earned a small fee
Earned a small fee
Posts: 14
Joined: Thu Feb 27, 2020 6:44 pm

Re: Is there a way to disable the blue higlighting effect on a wxBitmapButton? [wxWidgets 3.1.3]

Post by var_null » Sat Mar 21, 2020 7:04 pm

That would be the bitmap, I'm referring to the blue highlighting effect

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2386
Joined: Sun Jan 03, 2010 5:45 pm

Re: Is there a way to disable the higlighting effect on a wxBitmapButton? [wxWidgets 3.1.3]

Post by PB » Sat Mar 21, 2020 7:58 pm

At least on MSW, that is the Windows telling the user the control is a highlighted button.

You can remove this by creating the button with wxBORDER_NONE but I am not that is the best idea from the point of user experience.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4058
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Is there a way to disable the higlighting effect on a wxBitmapButton? [wxWidgets 3.1.3]

Post by ONEEYEMAN » Sun Mar 22, 2020 4:30 am

Hi,
Are you setting the button to be default?

Thank you.

Post Reply