Fix toolbar height with wxWidgets 3.1

This commit is contained in:
Zane U. Ji 2019-09-01 20:42:52 +08:00
parent da26cfb14f
commit 7b596e8ac3
1 changed files with 8 additions and 8 deletions

View File

@ -947,14 +947,6 @@ MyFrame::MyFrame (
stylePosition = aboutPosition = wxDefaultPosition;
styleSize = wxSize ( 720, 540 );
showTopBars (
#ifndef __WXOSX__
toolbarVisible
#else
false
#endif
);
long style = wxAUI_NB_TOP |
wxAUI_NB_TAB_SPLIT |
wxAUI_NB_TAB_MOVE |
@ -1066,6 +1058,14 @@ MyFrame::MyFrame (
manager.Update();
showTopBars (
#ifndef __WXOSX__
toolbarVisible
#else
false
#endif
);
wxAcceleratorEntry entry ( wxACCEL_CTRL, WXK_F4, wxID_CLOSE );
wxAcceleratorTable accel ( 1, &entry );
SetAcceleratorTable ( accel );