I'm trying to make a toolbar and put it at the bottom of the frame. The code was generated with wxFormBuilder which shows the toolbar directly under the menu bar, however when compiled and ran in VS2012, it's at the bottom of the window as it should be.
However, it still leaves a blank space the size of the toolbar immediately below the menu bar. On maximizing the window, the space grabs some of the MainMenu text as well as leaving blank space on the left and right of it, the color of the window. A picture is attached.
The code that generates the toolbar is as follows:
Code: Select all
m_scanSelectToolbar = this->CreateToolBar( wxTB_BOTTOM|wxTB_HORIZONTAL|wxBORDER_RAISED, wxID_SCANSELECTTOOLBAR ); m_scanSelectToolbar->SetToolSeparation( 0 ); m_scanSelectToolbar->SetToolPacking( 0 ); m_scanSelectToolbar->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );