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:
parent
7ce6cff5ab
commit
d0eea355fa
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue