Remove/Replace wxToolBar/wxStatusBar
BlitzMax Forums/Brucey's Modules/Remove/Replace wxToolBar/wxStatusBar
| ||
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.. |
| ||
SendSizeEvent() work on both: wxToolBar and wxStatusBar but only work's if wxToolBar is on the main frame |
| ||
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 |
| ||
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 |