wxToolBar and wxTB_BOTTOM - dead space?
Posted: Tue May 05, 2020 1:37 pm
Hi,
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:
I'm not sure what to do regarding getting rid of that empty space. The general layout of the window is Menu Bar, Sizer, panels in sizer, then Toolbar. I've tried having it recalculate the layout but nothing seemed to make a difference.
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 ) );