git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44520
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// stop all processing
m_created = false;
// stop all processing
m_created = false;
{
m_table->SetView(0);
if( m_ownTable )
{
m_table->SetView(0);
if( m_ownTable )
// original one current cell and selection regions
// might be invalid,
m_selectingKeyboard = wxGridNoCellCoords;
// original one current cell and selection regions
// might be invalid,
m_selectingKeyboard = wxGridNoCellCoords;
wxGridCellCoords(wxMin(m_numRows, m_currentCellCoords.GetRow()),
wxMin(m_numCols, m_currentCellCoords.GetCol()));
if (m_selectingTopLeft.GetRow() >= m_numRows ||
wxGridCellCoords(wxMin(m_numRows, m_currentCellCoords.GetRow()),
wxMin(m_numCols, m_currentCellCoords.GetCol()));
if (m_selectingTopLeft.GetRow() >= m_numRows ||
m_winCapture->CaptureMouse();
}
m_winCapture->CaptureMouse();
}
}
else if ( m_cursorMode == WXGRID_CURSOR_RESIZE_ROW )
{
}
else if ( m_cursorMode == WXGRID_CURSOR_RESIZE_ROW )
{
pos.y += GetColLabelSize();
if ( mouseEv.GetEventObject() == GetGridColLabelWindow() )
pos.x += GetRowLabelSize();
pos.y += GetColLabelSize();
if ( mouseEv.GetEventObject() == GetGridColLabelWindow() )
pos.x += GetRowLabelSize();
wxGridEvent gridEvt( GetId(),
type,
this,
wxGridEvent gridEvt( GetId(),
type,
this,
-void wxGrid::OnSize( wxSizeEvent& event )
+void wxGrid::OnSize(wxSizeEvent& WXUNUSED(event))
- // position the child windows
- CalcWindowSizes();
-
- // don't call CalcDimensions() from here, the base class handles the size
- // changes itself
- event.Skip();
+ // update our children window positions and scrollbars
+ CalcDimensions();
}
void wxGrid::OnKeyDown( wxKeyEvent& event )
}
void wxGrid::OnKeyDown( wxKeyEvent& event )
else if (event.GetKeyCode() == WXK_LEFT)
event.m_keyCode = WXK_RIGHT;
}
else if (event.GetKeyCode() == WXK_LEFT)
event.m_keyCode = WXK_RIGHT;
}
// try local handlers
switch ( event.GetKeyCode() )
{
// try local handlers
switch ( event.GetKeyCode() )
{