// Make a menubar
fileMenu = new wxMenu;
- fileMenu->Append(SPLIT_VERTICAL, "Split &Vertically", "Split vertically");
- fileMenu->Append(SPLIT_HORIZONTAL, "Split &Horizontally", "Split horizontally");
- fileMenu->Append(SPLIT_UNSPLIT, "&Unsplit", "Unsplit");
+ fileMenu->Append(SPLIT_VERTICAL, "Split &Vertically\tCtrl-V", "Split vertically");
+ fileMenu->Append(SPLIT_HORIZONTAL, "Split &Horizontally\tCtrl-H", "Split horizontally");
+ fileMenu->Append(SPLIT_UNSPLIT, "&Unsplit\tCtrl-U", "Unsplit");
fileMenu->AppendSeparator();
fileMenu->Append(SPLIT_SETMINSIZE, "Set &min size", "Set minimum pane size");
fileMenu->AppendSeparator();
- fileMenu->Append(SPLIT_QUIT, "E&xit", "Exit");
+ fileMenu->Append(SPLIT_QUIT, "E&xit\tAlt-X", "Exit");
menuBar = new wxMenuBar;
menuBar->Append(fileMenu, "&File");
SetMenuBar(menuBar);
m_splitter = new MySplitterWindow(this, SPLITTER_WINDOW);
+
+ wxSize sz( m_splitter->GetSize() );
+ wxLogMessage( "Initial splitter size: %d %d\n", (int)sz.x, (int)sz.y );
m_leftCanvas = new MyCanvas(m_splitter, CANVAS1, 0, 0, 400, 400, "Test1" );
m_leftCanvas->SetBackgroundColour(*wxRED);