Hi! I have a property grid window made and put into an AUI manager. Now when I select an object on my screen (it's a level editor) I want the property grid to fill up with the selected object's properties. However when I try to do this using:
Code: Select all
g_ObjectProperties->Append(new wxIntProperty("X", "X Position", 0));
I get an "Unhandled exception at 0x00000000" error and it points to this method, at the closing bracket:
Code: Select all
wxPGProperty* wxPropertyGridPageState::DoAppend( wxPGProperty* property )
{
wxPropertyCategory* cur_cat = m_currentCategory;
if ( property->IsCategory() )
cur_cat = NULL;
return DoInsert( cur_cat, -1, property );
}
I tried using the Append method to add properties in the constructor of the object properties window and it works but not when I try to append it later on. Anyone else have as similar problem?