Changed wxGrid::Refresh to not do anything,
modified EndBatch accordingly to still update the grid. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1052,15 +1052,7 @@ public:
|
|||||||
// flicker
|
// flicker
|
||||||
//
|
//
|
||||||
void BeginBatch() { m_batchCount++; }
|
void BeginBatch() { m_batchCount++; }
|
||||||
void EndBatch()
|
void EndBatch();
|
||||||
{
|
|
||||||
if ( m_batchCount > 0 )
|
|
||||||
{
|
|
||||||
m_batchCount--;
|
|
||||||
if ( !m_batchCount )
|
|
||||||
Refresh();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int GetBatchCount() { return m_batchCount; }
|
int GetBatchCount() { return m_batchCount; }
|
||||||
|
|
||||||
|
@@ -5127,12 +5127,6 @@ bool wxGrid::SendEvent( const wxEventType type,
|
|||||||
void wxGrid::OnPaint( wxPaintEvent& WXUNUSED(event) )
|
void wxGrid::OnPaint( wxPaintEvent& WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
wxPaintDC dc(this); // needed to prevent zillions of paint events on MSW
|
wxPaintDC dc(this); // needed to prevent zillions of paint events on MSW
|
||||||
|
|
||||||
CalcDimensions();
|
|
||||||
m_rowLabelWin->Refresh();
|
|
||||||
m_colLabelWin->Refresh();
|
|
||||||
m_cornerLabelWin->Refresh();
|
|
||||||
m_gridWin->Refresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -5928,6 +5922,24 @@ void wxGrid::GetTextBoxSize( wxDC& dc,
|
|||||||
*height = h;
|
*height = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// ------ Batch processing.
|
||||||
|
//
|
||||||
|
void wxGrid::EndBatch()
|
||||||
|
{
|
||||||
|
if ( m_batchCount > 0 )
|
||||||
|
{
|
||||||
|
m_batchCount--;
|
||||||
|
if ( !m_batchCount )
|
||||||
|
{
|
||||||
|
CalcDimensions();
|
||||||
|
m_rowLabelWin->Refresh();
|
||||||
|
m_colLabelWin->Refresh();
|
||||||
|
m_cornerLabelWin->Refresh();
|
||||||
|
m_gridWin->Refresh();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// ------ Edit control functions
|
// ------ Edit control functions
|
||||||
|
Reference in New Issue
Block a user