From ec76367afd053e7fbf429d793e0c169204349276 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 24 Sep 2019 01:32:53 +0200 Subject: [PATCH] Grey out grid headers if its parent is disabled too It doesn't really matter whether the grid is disabled because it was explicitly disabled itself or because it's implicitly disabled due to its parent being disabled, it should still show its disabled status to the user by rendering its headers in a greyed out state. --- src/generic/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 1892d53292..5c5132c83b 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -276,7 +276,7 @@ void wxGridHeaderLabelsRenderer::DrawLabel(const wxGrid& grid, // because this results in a better disabled appearance for the default // bold font used for the labels. wxColour colText; - if ( !grid.IsThisEnabled() ) + if ( !grid.IsEnabled() ) { colText = wxSystemSettings::GetColour(wxSYS_COLOUR_BTNHIGHLIGHT); dc.SetTextForeground(colText);