Unwanted header highlighting in wxDataViewCtrl

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
nguyentienhn
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Sep 04, 2019 11:15 am

Unwanted header highlighting in wxDataViewCtrl

Post by nguyentienhn » Thu Sep 12, 2019 8:56 am

Hi again,

I have another question about wxDataViewCtrl.
When you move the mouse above the header of a column, its text gets highlighted in blue. This is a nice behaviour if you implement sorting, because it suggests that something happens if you click on the header.

Since sorting does not make any sense in my application, I would like to surpress the highlighting.

Is there any way to do this?

I'm looking forward to your replies.

Thanks in advance.

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

Re: Unwanted header highlighting in wxDataViewCtrl

Post by doublemax » Thu Sep 12, 2019 9:23 am

Which platform are you using? wxDataViewCtrl uses a generic implementation under Windows and wraps native controls under OSX and GTK. While it may be possible to change the behavior under Windows, it's probably not possible under the other platforms.
Use the source, Luke!

Post Reply