Fixed turning on/off 'Category Specific Colours' in propgrid sample.

When specific colours are turned on then custom colours are assigned to both category properties and their sub-properties. But when specific colours are turned off then only category properties are reverted to default colours what is misleading.
Now, all properties are reverted to default colours.
This commit is contained in:
Artur Wieczorek 2015-08-27 19:16:29 +02:00
parent 7ce6cff5ab
commit d0eea355fa

View File

@ -2836,9 +2836,12 @@ void FormMain::OnCatColours( wxCommandEvent& event )
{
// Revert to original.
pg->SetPropertyColoursToDefault( wxT("Appearance") );
pg->SetPropertyColoursToDefault( wxT("Appearance"), wxPG_RECURSE );
pg->SetPropertyColoursToDefault( wxT("PositionCategory") );
pg->SetPropertyColoursToDefault( wxT("PositionCategory"), wxPG_RECURSE );
pg->SetPropertyColoursToDefault( wxT("Environment") );
pg->SetPropertyColoursToDefault( wxT("More Examples") );
pg->SetPropertyColoursToDefault( wxT("Environment"), wxPG_RECURSE );
pg->SetPropertyColoursToDefault( wxT("More Examples"), wxPG_RECURSE );
}
m_pPropGridManager->Thaw();
m_pPropGridManager->Refresh();