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.
This commit is contained in:
parent
3b491c0776
commit
ec76367afd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user