add support for hiding columns when using native header control in wxGrid; also added convenient Hide/ShowCol() methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2085,17 +2085,33 @@ public:
|
||||
/**
|
||||
Sets the width of the specified column.
|
||||
|
||||
Notice that this function does not refresh the grid, you need to call
|
||||
ForceRefresh() to make the changes take effect immediately.
|
||||
|
||||
@param col
|
||||
The column index.
|
||||
@param width
|
||||
The new column width in pixels or a negative value to fit the
|
||||
column width to its label width.
|
||||
The new column width in pixels, 0 to hide the column or -1 to fit
|
||||
the column width to its label width.
|
||||
*/
|
||||
void SetColSize(int col, int width);
|
||||
|
||||
/**
|
||||
Hides the specified column.
|
||||
|
||||
To show the column later you need to call SetColSize() with non-0
|
||||
width or ShowCol().
|
||||
|
||||
@param col
|
||||
The column index.
|
||||
*/
|
||||
void HideCol(int col);
|
||||
|
||||
/**
|
||||
Shows the previously hidden column by resizing it to non-0 size.
|
||||
|
||||
@see HideCol(), SetColSize()
|
||||
*/
|
||||
void ShowCol(int col);
|
||||
|
||||
|
||||
/**
|
||||
Sets the default width for columns in the grid.
|
||||
|
||||
@@ -2148,6 +2164,24 @@ public:
|
||||
*/
|
||||
void SetRowSize(int row, int height);
|
||||
|
||||
/**
|
||||
Hides the specified row.
|
||||
|
||||
To show the row later you need to call SetRowSize() with non-0
|
||||
width or ShowRow().
|
||||
|
||||
@param col
|
||||
The row index.
|
||||
*/
|
||||
void HideRow(int col);
|
||||
|
||||
/**
|
||||
Shows the previously hidden row by resizing it to non-0 size.
|
||||
|
||||
@see HideRow(), SetRowSize()
|
||||
*/
|
||||
void ShowRow(int col);
|
||||
|
||||
//@}
|
||||
|
||||
|
||||
@@ -2261,6 +2295,11 @@ public:
|
||||
*/
|
||||
void SetColPos(int colID, int newPos);
|
||||
|
||||
/**
|
||||
Resets the position of the columns to the default.
|
||||
*/
|
||||
void ResetColPos();
|
||||
|
||||
//@}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user