Skip to content
Browse files

Fix PT_PARENT property type to compile with recent wxWidgets versions

A recent change in wxWidgets made wxPGProperty an abstract class so that it can't be used directly anymore. Use a read-only wxStringProperty instead to get almost the previous behavior. This is not ideal but the previous version already did not honor the property grid "style" of composed properties.

The usage of the properties should be examined and maybe their implementation adjusted to better use the features of the current property grid version.
  • Loading branch information...
sodevel committed Aug 12, 2019
1 parent 36accb3 commit 19e6c4dc4466c9453e1d9924899df706e72e5e89
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/rad/inspector/objinspect.cpp
@@ -404,7 +404,8 @@ wxPGProperty* ObjectInspector::GetProperty( PProperty prop )
else if ( type == PT_PARENT )
result = new wxPGProperty( name, wxPG_LABEL );
result = new wxStringProperty( name, wxPG_LABEL );
result->ChangeFlag(wxPG_PROP_READONLY, true);

/*wxPGProperty* parent = new wxPGProperty( name, wxPG_LABEL );
parent->SetValueFromString( prop->GetValueAsString(), wxPG_FULL_VALUE );

0 comments on commit 19e6c4d

Please sign in to comment.
You can’t perform that action at this time.