Ask Your Question

Revision history [back]

click to hide/show revision 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:

  1. Derive main program frame from wx.Dialog:

    Override ProcessClosedMainPanel:

    a. Call EndModal with the ID_CANCEL result

    b. Call app.Exit()

  2. 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)

  3. In Main function:

    a. Instantiate your app class

    b. Call RunApp