Here is a summary of my wxFrame constructor where I build all the UI elements successfully (besides the wxDataViewCtrl):
Code: Select all
MyFrame::MyFrame(const wxString& title)
: wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(500, 400))
{
......................
wxButton *myButton = new wxButton(this, wxID_ANY, wxT("New"), wxPoint(0, 0), wxSize(200, 40), 0, wxDefaultValidator, "myButton");
wxDataViewCtrl *listCtrl= new wxDataViewCtrl(this, wxID_ANY, wxDefaultPosition, wxSize(300, 300), wxDV_NO_HEADER | wxDV_VARIABLE_LINE_HEIGHT); // shuts down application ???
}