Correct example of handling property values changes in the docs.
"." was incorrectly used with a pointer, replace it with a "->". git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -471,9 +471,9 @@ void MyWindowClass::OnPropertyGridChanged(wxPropertyGridEvent& event)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Handle changes in values, as needed
|
// Handle changes in values, as needed
|
||||||
if ( property.GetName() == "MyStringProperty" )
|
if ( property->GetName() == "MyStringProperty" )
|
||||||
OnMyStringPropertyChanged(value.As<wxString>());
|
OnMyStringPropertyChanged(value.As<wxString>());
|
||||||
else if ( property.GetName() == "MyColourProperty" )
|
else if ( property->GetName() == "MyColourProperty" )
|
||||||
OnMyColourPropertyChanged(value.As<wxColour>());
|
OnMyColourPropertyChanged(value.As<wxColour>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user