How to hide wxGrid focus rect Topic is solved

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
Ronald
Super wx Problem Solver
Super wx Problem Solver
Posts: 306
Joined: Mon Mar 05, 2018 4:17 am

How to hide wxGrid focus rect

Post by Ronald »

Tried EnableEditing(false), not work.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to hide wxGrid focus rect

Post by doublemax »

There is no "clean", official way to do this, but this should work:

Code: Select all

    grid->SetCellHighlightPenWidth(0);
    grid->SetCellHighlightROPenWidth(0);
Use the source, Luke!
Post Reply