First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
I contacted PTI regarding this issue and they gave me the follow advise for how to handle this in WX. I haven't tried it out yet, but hopefully it will work:
Derive main program frame from wx.Dialog:
Override ProcessClosedMainPanel:
a. Call EndModal with the ID_CANCEL result
b. Call app.Exit()
Derive an App class from wx.App:
Override RunApp:
a. Instantiate your dlg class
b. Set to top window
c. Call ShowModal
d. del dlg (on return from show modal)
In Main function:
a. Instantiate your app class
b. Call RunApp