Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: martim01 on May 24, 2009, 09:36:46 am

Title: wxSmith plugin: Adding custom property in OnAddExtraProperties
Post by: martim01 on May 24, 2009, 09:36:46 am
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.