To test the bug: open the "grid" sample and popup the about box, then move it over the grid; without this fix portions of wxGrid were painted as gray (disabled colour) even if the wxGrid itself was not disabled.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59249
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
dc.SetBackgroundMode( wxBRUSHSTYLE_SOLID );
wxColour clr;
dc.SetBackgroundMode( wxBRUSHSTYLE_SOLID );
wxColour clr;
- if ( grid.IsEnabled() )
+ if ( grid.IsThisEnabled() )
// TODO some special colours for attr.IsReadOnly() case?
// different coloured text when the grid is disabled
// TODO some special colours for attr.IsReadOnly() case?
// different coloured text when the grid is disabled
- if ( grid.IsEnabled() )
+ if ( grid.IsThisEnabled() )
wxSize wxGridCellBoolRenderer::ms_sizeCheckMark;
wxSize wxGridCellBoolRenderer::ms_sizeCheckMark;
-wxSize wxGridCellBoolRenderer::GetBestSize(wxGrid& grid,
+wxSize wxGridCellBoolRenderer::GetBestSize(wxGrid& WXUNUSED(grid),
wxGridCellAttr& WXUNUSED(attr),
wxDC& WXUNUSED(dc),
int WXUNUSED(row),
wxGridCellAttr& WXUNUSED(attr),
wxDC& WXUNUSED(dc),
int WXUNUSED(row),