Allow disabling hiding columns when using wxHeaderCtrl in wxGrid
Add wxGrid::DisableHidingColumns() method which can be used to prevent wxHeaderCtrl from allowing the user to hide columns interactively, which is something it allows to do by default, unlike the "built-in" wxGrid header. Also add EnableHidingColumns() and CanHideColumns() for consistency with the other similar methods. Closes https://github.com/wxWidgets/wxWidgets/pull/1554
This commit is contained in:
committed by
Vadim Zeitlin
parent
4302c6b8ba
commit
e26d90028b
@@ -1359,6 +1359,11 @@ public:
|
||||
void DisableDragColMove() { EnableDragColMove( false ); }
|
||||
bool CanDragColMove() const { return m_canDragColMove; }
|
||||
|
||||
// interactive column hiding (enabled by default, works only for native header)
|
||||
bool EnableHidingColumns( bool enable = true );
|
||||
void DisableHidingColumns() { EnableHidingColumns(false); }
|
||||
bool CanHideColumns() { return m_canHideColumns; }
|
||||
|
||||
// interactive resizing of grid cells (enabled by default)
|
||||
void EnableDragGridSize(bool enable = true);
|
||||
void DisableDragGridSize() { EnableDragGridSize(false); }
|
||||
@@ -2172,6 +2177,7 @@ protected:
|
||||
bool m_canDragRowSize;
|
||||
bool m_canDragColSize;
|
||||
bool m_canDragColMove;
|
||||
bool m_canHideColumns;
|
||||
bool m_canDragGridSize;
|
||||
bool m_canDragCell;
|
||||
|
||||
|
Reference in New Issue
Block a user