Greetings,
I am using Code::Blocks svn build rev 9156 with wxWidgets 2.9.5 on Xubuntu 12.04 LTS AMD64.
I have created a Frame with a Panel, multiple sizers, a Notebook with multiple grids with wxSmith. wxSmith generates multiple SetSizer() lines in the code, one that works, and one that error at runtime.
noteFirm->SetSizer(boxFirm); // correct
SetSizer(boxFirm); // will error at runtime
Layout();
I have read in other posts that the top Panel should use wxDefaultSize. Mine does, however, I have set a size for the Frame. I want the Frame an exact size and not resizable.
Create(parent, wxID_ANY, _("E-E-A"), wxDefaultPosition, wxDefaultSize, wxCAPTION|wxCLOSE_BOX|wxFRAME_TOOL_WINDOW|wxTAB_TRAVERSAL|wxDOUBLE_BORDER|wxRAISED_BORDER, _T("wxID_ANY"));
SetClientSize(wxSize(1000,700));
panelMain = new wxPanel(this, ID_panelMain, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_panelMain"));
My temp solution for the moment has been to create a private function within the Frame's class called SetSizer (that I want to share to those others who are having the same difficulty).
private:
void SetSizer(wxBoxSizer*) {}; // remove wxSmith errors
However, I was wondering if there is a "correct" way to prevent wxSmith from generating these extra SetSizer lines?
Thank you.
Paul Crown