From 5b525ed201ee4004ab2fc2e649072f74bf07ab8f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Jun 2019 00:58:51 +0200 Subject: [PATCH] Advise using a border with a wxGrid not showing column/row labels In this case a border can be useful to visually separate the grid from the surrounding area as without it there is no separation at all. --- interface/wx/grid.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/interface/wx/grid.h b/interface/wx/grid.h index ad840f7f6b..ec87b3c6bc 100644 --- a/interface/wx/grid.h +++ b/interface/wx/grid.h @@ -2514,6 +2514,14 @@ public: 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(); @@ -2522,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();