From 503c6a48c7f8b8ffa3f8c8b9371d56889fab81a8 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 27 Aug 2015 19:06:46 +0200 Subject: [PATCH] Use argument of proper type when calling SetPropertyTextColour in propgrid sample. wxPropertyGridInterface::SetPropertyTextColour expects int value for flags parameter, not Boolean. --- samples/propgrid/propgrid.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index 76c25f1af0..d26d885d48 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -2820,13 +2820,13 @@ void FormMain::OnCatColours( wxCommandEvent& event ) if ( event.IsChecked() ) { // Set custom colours. - pg->SetPropertyTextColour( wxT("Appearance"), wxColour(255,0,0), false ); + pg->SetPropertyTextColour( wxT("Appearance"), wxColour(255,0,0), wxPG_DONT_RECURSE ); pg->SetPropertyBackgroundColour( wxT("Appearance"), wxColour(255,255,183) ); pg->SetPropertyTextColour( wxT("Appearance"), wxColour(255,0,183) ); - pg->SetPropertyTextColour( wxT("PositionCategory"), wxColour(0,255,0), false ); + pg->SetPropertyTextColour( wxT("PositionCategory"), wxColour(0,255,0), wxPG_DONT_RECURSE ); pg->SetPropertyBackgroundColour( wxT("PositionCategory"), wxColour(255,226,190) ); pg->SetPropertyTextColour( wxT("PositionCategory"), wxColour(255,0,190) ); - pg->SetPropertyTextColour( wxT("Environment"), wxColour(0,0,255), false ); + pg->SetPropertyTextColour( wxT("Environment"), wxColour(0,0,255), wxPG_DONT_RECURSE ); pg->SetPropertyBackgroundColour( wxT("Environment"), wxColour(208,240,175) ); pg->SetPropertyTextColour( wxT("Environment"), wxColour(255,255,255) ); pg->SetPropertyBackgroundColour( wxT("More Examples"), wxColour(172,237,255) );