Some mouse events need to be handled even when outside the grid.
Added flag and accessors to enable/disable the dragging of the grid lines. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -958,7 +958,6 @@ public:
|
||||
|
||||
void ShowCellEditControl();
|
||||
void HideCellEditControl();
|
||||
void SetEditControlValue( const wxString& s = wxEmptyString );
|
||||
void SaveEditControlValue();
|
||||
|
||||
|
||||
@@ -1041,6 +1040,10 @@ public:
|
||||
void EnableDragColSize( bool enable = TRUE );
|
||||
void DisableDragColSize() { EnableDragColSize( FALSE ); }
|
||||
bool CanDragColSize() { return m_canDragColSize; }
|
||||
void EnableDragGridSize(bool enable = TRUE);
|
||||
void DisableDragGridSize() { EnableDragGridSize(FALSE); }
|
||||
bool CanDragGridSize() { return m_canDragGridSize; }
|
||||
|
||||
|
||||
// this sets the specified attribute for all cells in this row/col
|
||||
void SetRowAttr(int row, wxGridCellAttr *attr);
|
||||
@@ -1530,6 +1533,7 @@ protected:
|
||||
|
||||
bool m_canDragRowSize;
|
||||
bool m_canDragColSize;
|
||||
bool m_canDragGridSize;
|
||||
int m_dragLastPos;
|
||||
int m_dragRowOrCol;
|
||||
bool m_isDragging;
|
||||
|
Reference in New Issue
Block a user