Remove/Replace wxToolBar/wxStatusBar

BlitzMax Forums/Brucey's Modules/Remove/Replace wxToolBar/wxStatusBar

MOBii(Posted 2015) [#1]
is there a way to toggle hide/show wxToolBar/wxStatusBar
When the wxToolBar/wxStatusBar is gone I want it to give way to the application window!

Now I just hide wxToolBar/wxStatusBar and the background of wxToolBar/wxStatusBar is still there!
(the Application window is the same size when I hide/show the wxToolBar/wxStatusBar)

I want to stretch over the wxToolBar/wxStatusBar background with the application windows again
When I stretch/drag the window size with the mouse the window snap over the wxToolBar/wxStatusBar background..


MOBii(Posted 2015) [#2]
SendSizeEvent() work on both: wxToolBar and wxStatusBar
but only work's if wxToolBar is on the main frame


MOBii(Posted 2015) [#3]
I try learn wxBoxSizer and I add my wxPanel to wxBoxSizer for stretching the toolbar
and when I remove the toolbar I could not SetSize/SetPosition back my wxPanel

The problem is that I have problem understanding wxBoxSizer
I remove the wxBoxSizer and if I SetSize/SetPosition manually it work's to remove the wxToolBar

I still like to learn wxSizer so I maybe can use: wxAui


Henri(Posted 2015) [#4]
Hi,

I would recommend that you try to build a GUI using wxFormBuilder to see how sizers work. wxFormBuilder project can be imported to Blitzmax using Brucey's codegen app found in wx.mod/tools folder.

-Henri