lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] Terminating a dialog


From: Greg Chicares
Subject: [lmi] Terminating a dialog
Date: Tue, 01 Aug 2006 20:03:46 +0000
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Vadim--Is calling EndModal(wxID_CANCEL) the right way to break out of
a modal dialog? I want to do this when something has gone horribly
wrong in my wxDialog-derived class, but there's no need to terminate
the application.

  // wxEVT_UPDATE_UI handler.
  void MyDialog::MyUpdateUIHandler
  {
      ...
      if(disaster)
          {
          EndModal(wxID_CANCEL);
          MyMessageBox("Oops.");
          }
  }

This seems to work, but I thought I'd ask anyway.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]