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:
@@ -106,7 +106,7 @@ public:
|
||||
void FormMain::AddTestProperties( wxPropertyGridPage* pg )
|
||||
{
|
||||
pg->Append( new MyColourProperty(wxT("CustomColourProperty"), wxPG_LABEL, *wxGREEN) );
|
||||
pg->GetProperty(wxT("CustomColourProperty"))->SetFlag(wxPG_PROP_AUTO_UNSPECIFIED);
|
||||
pg->GetProperty(wxT("CustomColourProperty"))->SetAutoUnspecified(true);
|
||||
pg->SetPropertyEditor( wxT("CustomColourProperty"), wxPGEditor_ComboBox );
|
||||
|
||||
pg->SetPropertyHelpString(wxT("CustomColourProperty"),
|
||||
|
Reference in New Issue
Block a user