Calling Refresh() doesn't do this because of our minimal OnPaint
handler (to reduce screen flicker).
Setting of position coords for wxGridEvents now takes account of
row and col label sizes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7798
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int GetBatchCount() { return m_batchCount; }
int GetBatchCount() { return m_batchCount; }
+ // Use this, rather than wxWindow::Refresh(), to force an
+ // immediate repainting of the grid. Has no effect if you are
+ // already inside a BeginBatch / EndBatch block.
+ //
+ // This function is necessary because wxGrid has a minimal OnPaint()
+ // handler to reduce screen flicker.
+ //
+ void ForceRefresh();
+
// ------ edit control functions
//
// ------ edit control functions
//
- mouseEv.GetX(), mouseEv.GetY(),
+ mouseEv.GetX() + GetColLabelSize(),
+ mouseEv.GetY() + GetRowLabelSize(),
mouseEv.ControlDown(),
mouseEv.ShiftDown(),
mouseEv.AltDown(),
mouseEv.ControlDown(),
mouseEv.ShiftDown(),
mouseEv.AltDown(),
- mouseEv.GetX(), mouseEv.GetY(),
+ mouseEv.GetX() + GetColLabelSize(),
+ mouseEv.GetY() + GetRowLabelSize(),
FALSE,
mouseEv.ControlDown(),
mouseEv.ShiftDown(),
FALSE,
mouseEv.ControlDown(),
mouseEv.ShiftDown(),
+// Use this, rather than wxWindow::Refresh(), to force an immediate
+// repainting of the grid. Has no effect if you are already inside a
+// BeginBatch / EndBatch block.
+//
+void wxGrid::ForceRefresh()
+{
+ BeginBatch();
+ EndBatch();
+}
+
+
//
// ------ Edit control functions
//
//
// ------ Edit control functions
//