if ( event.Dragging() )
{
if (!m_isDragging)
- {
m_isDragging = true;
- m_rowLabelWin->CaptureMouse();
- }
if ( event.LeftIsDown() )
{
return;
if (m_isDragging)
- {
- if (m_rowLabelWin->HasCapture())
- m_rowLabelWin->ReleaseMouse();
m_isDragging = false;
- }
// ------------ Entering or leaving the window
//
if (!m_isDragging)
{
m_isDragging = true;
- GetColLabelWindow()->CaptureMouse();
if ( m_cursorMode == WXGRID_CURSOR_MOVE_COL && col != -1 )
DoStartMoveCol(col);
return;
if (m_isDragging)
- {
- if (GetColLabelWindow()->HasCapture())
- GetColLabelWindow()->ReleaseMouse();
m_isDragging = false;
- }
// ------------ Entering or leaving the window
//
{
if ( column )
{
+ if ( !IsRowShown(rowOrCol) )
+ continue;
+
row = rowOrCol;
col = colOrRow;
}
else
{
+ if ( !IsColShown(rowOrCol) )
+ continue;
+
row = colOrRow;
col = rowOrCol;
}