I'm writing an app that will have several distinct states, and I have a couple of minor questions about the best way to do things.
1) I have a single frame containing a panel. The panel is changed when the app changes state. I also want to change the menu to contain only items appropriate to the current state. Am I better off getting the frame's menubar, deleting unneeded items, and adding new ones, or can I simply create a new menubar and call wxFrame.SetMenuBar(new_menubar)?
2) The state-change transitions often include sending a command to a remote server and waiting for a response. During that time, there's no practical use for user interaction. I want to disable input and "gray out" the panel while waiting, so that the user knows to just be patient. I'm currently using wxPanel.Enable(False) and wxBeginBusyCursor(), but I can't find a simple/obvious way to gray out the entire panel (Enable() doesn't change the appearance, it seems). I seem to remember seeing this discussed on the list, but I don't recall the proper method...
Thanks in advance for any pointers anyone might have.
Jeff Shannon
Technician/Programmer
Credit International