Don't gray out mandatory field names.

(Even though they are read-only.  It makes it look like the whole
field is disabled.)
This commit is contained in:
Jeff Young 2020-05-27 10:17:16 +01:00
parent 1792479ca5
commit fb8dcb52d1
1 changed files with 4 additions and 1 deletions

View File

@ -257,7 +257,10 @@ wxGridCellAttr* FIELDS_GRID_TABLE<T>::GetAttr( int aRow, int aCol, wxGridCellAtt
{
tmp = m_fieldNameAttr->Clone();
tmp->SetReadOnly( true );
tmp->SetTextColour( wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT ) );
if( rowIsReadOnly )
tmp->SetTextColour( wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT ) );
return tmp;
}
else