Code: Select all
BasicFrame::BasicFrame(void) : wxFrame( (wxWindow*) NULL, -1, wxString("Meugheuvel's Logic Synthesis Tool"), wxDefaultPosition, wxSize(800,800), wxDEFAULT_FRAME_STYLE){
/* This is the constructor of the gui.
* It makes a splitter, rightframe and a
* leftframe.
*/
BasicSplitter = new wxSplitterWindow(this, -1, wxPoint(0,0), GetSize(), wxSP_3D | wxSP_LIVE_UPDATE); // Create a new splitter
LeftFrame = new CmdFrame(BasicSplitter, TREEFRAME_ID); // Create the left and right frame..
RightFrame = new MainFrame(BasicSplitter, MAINFRAME_ID); // with BasicSplitter as parent.
BasicSplitter->SplitVertically(LeftFrame, RightFrame, 200); // tell BasicSplitter what to do.
}
I use wxWindows 2.4.2 with MingW under Win XP.