X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2d7623799d9756be1d48d2a91b8c8c7a57b911a..52130557bfa9d969c7c274bebbf7afc2e496321d:/include/wx/generic/grid.h diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index ee7e4f9424..9df770ec8e 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -839,6 +839,13 @@ public: void SetRowLabelValue( int row, const wxString& ); void SetColLabelValue( int col, const wxString& ); void SetGridLineColour( const wxColour& ); + + void EnableDragRowSize( bool enable = TRUE ); + void DisableDragRowSize() { EnableDragRowSize( FALSE ); } + bool CanDragRowSize() { return m_canDragRowSize; } + void EnableDragColSize( bool enable = TRUE ); + void DisableDragColSize() { EnableDragColSize( FALSE ); } + bool CanDragColSize() { return m_canDragColSize; } // this sets the specified attribute for all cells in this row/col void SetRowAttr(int row, wxGridCellAttr *attr); @@ -890,9 +897,9 @@ public: wxGridCellRenderer* GetCellRenderer(int row, int col); // takes ownership of the pointer -// void SetDefaultEditor(wxGridCellEditor *editor); + void SetDefaultEditor(wxGridCellEditor *editor); void SetCellEditor(int row, int col, wxGridCellEditor *editor); -// wxGridCellEditor *GetDefaultEditor() const; + wxGridCellEditor *GetDefaultEditor() const; wxGridCellEditor* GetCellEditor(int row, int col); @@ -1319,6 +1326,8 @@ protected: wxWindow *m_winCapture; // the window which captured the mouse CursorMode m_cursorMode; + bool m_canDragRowSize; + bool m_canDragColSize; int m_dragLastPos; int m_dragRowOrCol; bool m_isDragging;