I have stupid (I hope) problem with wxPropertyGrid. Let's say I have properties:
Code: Select all
// pProped is a wxPropertyGrid pointer
wxPGId catID = pProped->AppendCategory("Category");
wxPGId parentID = pProped->AppendIn(categoryId, wxParentProperty("Pivot", wxPG_LABEL));
pProped->AppendIn(parentID, wxFloatProperty(wxT("x"), wxPG_LABEL, value.x));
pProped->AppendIn(parentID, wxFloatProperty(wxT("y"), wxPG_LABEL, value.y));
pProped->AppendIn(parentID, wxFloatProperty(wxT("z"), wxPG_LABEL, value.z));
parentID = pProped->AppendIn(categoryId, wxParentProperty("Position", wxPG_LABEL));
pProped->AppendIn(parentID, wxFloatProperty(wxT("x"), wxPG_LABEL, value.x));
pProped->AppendIn(parentID, wxFloatProperty(wxT("y"), wxPG_LABEL, value.y));
pProped->AppendIn(parentID, wxFloatProperty(wxT("z"), wxPG_LABEL, value.z));
pProped->DisableProperty("Pivot");
Code: Select all
pProped->PropertyWasModified(xID);
pProped->PropertyWasModified(yID);
pProped->PropertyWasModified(zID);
// where xID, yID, zID are wxPGId of "x", "y", and "z" properties of Pivot
(...)
pProped->Reftesh();
pProped->ClearModifiedStatus();
Code: Select all
pProped->PropertyWasModified("Pivot");
Anyone know how to deal with this issue?