X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6a0a70c9799fa5693e75b5c00301ac90dfba5754..dd71bfb9921430755a885117cc6c9843c62dafda:/samples/propgrid/propgrid.cpp?ds=inline diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index 5deb693160..b81ea3cc3e 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -1516,7 +1516,7 @@ void FormMain::PopulateWithExamples () pid = pg->Append( new wxColourProperty(wxT("ColourProperty"),wxPG_LABEL,*wxRED) ); //pg->SetPropertyAttribute(pid,wxPG_COLOUR_ALLOW_CUSTOM,false); pg->SetPropertyEditor( wxT("ColourProperty"), wxPGEditor_ComboBox ); - pg->GetProperty(wxT("ColourProperty"))->SetFlag(wxPG_PROP_AUTO_UNSPECIFIED); + pg->GetProperty(wxT("ColourProperty"))->SetAutoUnspecified(true); pg->SetPropertyHelpString( wxT("ColourProperty"), wxT("wxPropertyGrid::SetPropertyEditor method has been used to change ") wxT("editor of this property to wxPGEditor_ComboBox)"));