i would test wxPropGrid in a clear minimal-sample and added following lines:
Code: Select all
#include <wx/propgrid/propgrid.h>
#include <wx/propgrid/advprops.h>
wxPropertyGrid* pg = new wxPropertyGrid(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxPG_AUTO_SORT | wxPG_BOLD_MODIFIED | wxPG_SPLITTER_AUTO_CENTER | wxPG_DEFAULT_STYLE);
and now, with a simple string property, i have no problems:
Code: Select all
pg->Append( wxStringProperty(wxT("Label"),wxT("Name1"),wxT("Initial Value")) );
but with all other propertys, like the following, the compiler says error C2248: 'wxString::wxString' : cannot access private member declared in class 'wxString'
Code: Select all
pg->Append ( wxIntProperty ( wxT("IntProperty"), wxID_ANY, 12345678 ) );
pg->Append(wxColourProperty(_("MenuColour"), wxID_ANY, wxColour(242,109,0)));
what does i wrong?
My System is WinXP/SP2 & VC++7.0 & wxWidgets-2.6.2 & wxPropGrid 1.0.6