alys666 wrote: ↑
Tue Jun 11, 2019 4:29 pm
my idea is very simple. face of my programm - it's wxAuiManager with different panes.
Sometime user wants to hide a pane, if he does not need it. he presses a cross sign, and hides. but to restore the window - there is a menu - show this panel, show that panel, etc. he presses menu item, and i call mentioned function. and panel restores an minimal size. thanks a lot!
Let say you have Panes A, B, and C
I would store 4 configurations persistently ( you can even use wxFileConfig
or another mechanism if your app indeed have any
CONF_A - store pane info for pane A
CONF_B - store pane info for pane B
CONF_C - store pane info for pane C
CONF_A LL- store wxAui last window
on response to Hide/Show, just load data from config the Update wxAuiManager
When app exits store whole perspective on CONF_ALL so that next time App starts it will load exit state
That makes layout very flexible. Of course with flexibility comes more responsibilities