Moved wxPGProperty::SetFlag() to protected API since it does not have any side-effects that are usually desired in the user code. Added wxPGProperty::SetAutoUnspecified() since wxPG_PROP_AUTO_UNSPECIFIED can no longer be set (conveniently) with SetFlag().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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)"));
|
||||
|
Reference in New Issue
Block a user