Did i miss a flag or some setting with the newer release ?
Example how i add the item:
Code: Select all
pPropBaseName = m_PropGrid->Append(new wxEnumProperty(wxT("BaseName"), wxPG_LABEL, BaseChoices,0) );
Code: Select all
pPropBaseName = m_PropGrid->Append(new wxEnumProperty(wxT("BaseName"), wxPG_LABEL, BaseChoices,0) );
Code: Select all
m_PropGrid = new wxPropertyGrid(
m_MBoxSizer->GetStaticBox(), // parent
ID_PROPGRID, // id
wxDefaultPosition, // position
wxDefaultSize, // size
// Some specific window styles - for all additional styles,
// see Modules->PropertyGrid Window Styles
/*wxPG_AUTO_SORT |*/ // Automatic sorting after items added
wxPG_SPLITTER_AUTO_CENTER | // Automatically center splitter until user manually adjusts it
// Default style
wxPG_DEFAULT_STYLE );
m_PropGrid->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(xxx::OnPropertyGridChange),NULL,this );
m_PropGrid->Connect(wxEVT_PG_SELECTED, wxPropertyGridEventHandler(xxx::OnPropertyGridSelected),NULL,this );
m_PropGrid->SetPropertyAttributeAll(wxPG_BOOL_USE_CHECKBOX, true);
Code: Select all
wxArrayString tchoices;
tchoices.Add(wxT("Cabbage"));
tchoices.Add(wxT("Carrot"));
tchoices.Add(wxT("Onion"));
tchoices.Add(wxT("Potato"));
tchoices.Add(wxT("Strawberry"));
m_PropGrid->Append( new wxEnumProperty(wxT("EnumProperty X"),wxPG_LABEL, tchoices ) );