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:
@@ -2836,9 +2836,12 @@ void FormMain::OnCatColours( wxCommandEvent& event )
|
|||||||
{
|
{
|
||||||
// Revert to original.
|
// Revert to original.
|
||||||
pg->SetPropertyColoursToDefault( wxT("Appearance") );
|
pg->SetPropertyColoursToDefault( wxT("Appearance") );
|
||||||
|
pg->SetPropertyColoursToDefault( wxT("Appearance"), wxPG_RECURSE );
|
||||||
pg->SetPropertyColoursToDefault( wxT("PositionCategory") );
|
pg->SetPropertyColoursToDefault( wxT("PositionCategory") );
|
||||||
|
pg->SetPropertyColoursToDefault( wxT("PositionCategory"), wxPG_RECURSE );
|
||||||
pg->SetPropertyColoursToDefault( wxT("Environment") );
|
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->Thaw();
|
||||||
m_pPropGridManager->Refresh();
|
m_pPropGridManager->Refresh();
|
||||||
|
Reference in New Issue
Block a user