Add wxGrid::Enable{Row,Col}Resize()

These functions are needed to allow resizing the rows/columns whose size
was fixed by Disable{Row,Col}Resize() as otherwise the effect of a call
to the latter function can't be undone at all.
This commit is contained in:
Vadim Zeitlin 2022-09-02 20:52:20 +01:00
parent e2a6eac6e8
commit ab2dd24976
3 changed files with 34 additions and 1 deletions

View file

@ -4655,6 +4655,17 @@ public:
*/
void DisableHidingColumns();
/**
Enable interactively resizing a column if it was previously forbidden.
Calling this function only makes sense if the row resizing had been
previously forbidden using DisableColResize(), as it simply undoes its
effect.
@since 3.3.0
*/
void EnableColResize(int col);
/**
Enables or disables cell dragging with the mouse.
*/
@ -4726,6 +4737,17 @@ public:
*/
bool EnableHidingColumns(bool enable = true);
/**
Enable interactively resizing a row if it was previously forbidden.
Calling this function only makes sense if the row resizing had been
previously forbidden using DisableRowResize(), as it simply undoes its
effect.
@since 3.3.0
*/
void EnableRowResize(int row)l
/**
Returns the column ID of the specified column position.
*/