wxWidgets/samples/grid
Vadim Zeitlin ccc040255c Fix wxGrid editors background painting.
There were two fundamental problems: first, we painted on a separately created
wxClientDC instead of using the wxPaintDC already available in wxGrid. Second,
we invalidated the control while painting, resulting in endless repainting, at
least under wxGTK.

Fix the first problem by passing wxDC to wxGridCellEditor::PaintBackground()
and the second one by not refreshing the control from there as it just seems
unnecessary.

Also pass the attribute by reference for consistency with
wxGridCellRenderer::Draw() and because this pointer can never be NULL.

Closes #2628.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-17 16:44:02 +00:00
..
bitmap1.bmp Initial revision 1998-05-20 14:01:55 +00:00
bitmap2.bmp Replaced image 2005-05-18 15:40:51 +00:00
grid_vc7.vcproj Rebake everything using bakefile 0.2.9. 2011-02-03 15:02:45 +00:00
grid_vc8.vcproj Rebake all project files to reflect MSVC deprecation warnings defines. 2012-02-07 21:38:09 +00:00
grid_vc9.vcproj Rebake all project files to reflect MSVC deprecation warnings defines. 2012-02-07 21:38:09 +00:00
grid.bkl Remove references to not existing any more griddemo.rc file. 2010-06-20 18:18:41 +00:00
grid.dsp Remove references to not existing any more griddemo.rc file. 2010-06-20 18:18:41 +00:00
griddemo.cpp Fix wxGrid editors background painting. 2012-10-17 16:44:02 +00:00
griddemo.h Make TAB behaviour in wxGrid more configurable. 2012-10-13 22:55:18 +00:00
makefile.bcc Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
makefile.gcc Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
Makefile.in Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
makefile.unx Remove wxMGL port. 2012-01-15 14:46:41 +00:00
makefile.vc Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00
makefile.wat Increase version to 2.9.5. 2012-07-10 23:51:44 +00:00