Merge branch 'grid-appearance-fixes'

Draw row/columns labels better in the disabled state and improve
appearance of wxGrids with a border.

See https://github.com/wxWidgets/wxWidgets/pull/1358
This commit is contained in:
Vadim Zeitlin
2019-06-19 16:44:16 +02:00
2 changed files with 96 additions and 28 deletions

View File

@@ -2511,7 +2511,17 @@ public:
/**
Hides the column labels by calling SetColLabelSize() with a size of 0.
Show labels again by calling that method with a width greater than 0.
The labels can be shown again by calling SetColLabelSize() with a
height greater than 0.
Note that when the column labels are hidden, the grid won't have any
visible border on the top side, which may result in a less than ideal
appearance. Because of this, you may want to create the grid window
with a border style, such as @c wxBORDER_SIMPLE, when you don't plan to
show the column labels for it.
@see HideRowLabels()
*/
void HideColLabels();
@@ -2520,6 +2530,9 @@ public:
The labels can be shown again by calling SetRowLabelSize() with a width
greater than 0.
See HideColLabels() for a note explaining why you may want to use a
border with a grid without the row labels.
*/
void HideRowLabels();