Author Topic: wxSmith plugin: Adding custom property in OnAddExtraProperties  (Read 2608 times)

Offline martim01

  • Single posting newcomer
  • *
  • Posts: 2
I'm currently developing a plugin for wxSmith for a work project. The class I'm currently working on needs to display different property options depending on what value you select in a wxEnumProperty. Using the Code::Blocks wiki and the source control to Chart control I've managed to add the standard properties in the OnAddExtraProperties function and change them when the selection changes. I've also managed to create a new custom editor property by looking at the source for wxsArrayStringProperty. However I can't work out how to add this property in the OnAddExtraProperties function. Whatever I try causes Code::Blocks to crash either when you change the selection in the wxEnumProperty and when you select a different item in the tree view and then reselect my new one. Any help would be most appreciated.