More changes to SetCurrentCell.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5360,12 +5360,10 @@ void wxGrid::SetCurrentCell( const wxGridCellCoords& coords )
|
|||||||
HideCellEditControl();
|
HideCellEditControl();
|
||||||
DisableCellEditControl();
|
DisableCellEditControl();
|
||||||
|
|
||||||
wxRect r;
|
|
||||||
if ( IsVisible( m_currentCellCoords ) )
|
if ( IsVisible( m_currentCellCoords ) )
|
||||||
{
|
{
|
||||||
|
wxRect r;
|
||||||
r = BlockToDeviceRect(m_currentCellCoords, m_currentCellCoords);
|
r = BlockToDeviceRect(m_currentCellCoords, m_currentCellCoords);
|
||||||
CalcCellsExposed( r );
|
|
||||||
|
|
||||||
if ( !m_gridLinesEnabled )
|
if ( !m_gridLinesEnabled )
|
||||||
{
|
{
|
||||||
r.x--;
|
r.x--;
|
||||||
@@ -5374,12 +5372,14 @@ void wxGrid::SetCurrentCell( const wxGridCellCoords& coords )
|
|||||||
r.height++;
|
r.height++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CalcCellsExposed( r );
|
||||||
|
|
||||||
// Otherwise refresh redraws the highlight!
|
// Otherwise refresh redraws the highlight!
|
||||||
m_currentCellCoords = coords;
|
m_currentCellCoords = coords;
|
||||||
}
|
|
||||||
|
|
||||||
DrawGridCellArea(dc);
|
DrawGridCellArea(dc);
|
||||||
DrawAllGridLines( dc, r );
|
DrawAllGridLines( dc, r );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_currentCellCoords = coords;
|
m_currentCellCoords = coords;
|
||||||
@@ -5932,15 +5932,15 @@ void wxGrid::EndBatch()
|
|||||||
{
|
{
|
||||||
if ( m_batchCount > 0 )
|
if ( m_batchCount > 0 )
|
||||||
{
|
{
|
||||||
m_batchCount--;
|
m_batchCount--;
|
||||||
if ( !m_batchCount )
|
if ( !m_batchCount )
|
||||||
{
|
{
|
||||||
CalcDimensions();
|
CalcDimensions();
|
||||||
m_rowLabelWin->Refresh();
|
m_rowLabelWin->Refresh();
|
||||||
m_colLabelWin->Refresh();
|
m_colLabelWin->Refresh();
|
||||||
m_cornerLabelWin->Refresh();
|
m_cornerLabelWin->Refresh();
|
||||||
m_gridWin->Refresh();
|
m_gridWin->Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user