[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Terminating a dialog
From: |
Vadim Zeitlin |
Subject: |
Re: [lmi] Terminating a dialog |
Date: |
Tue, 1 Aug 2006 22:07:50 +0200 |
On Tue, 01 Aug 2006 20:03:46 +0000 Greg Chicares <address@hidden> wrote:
GC> Vadim--Is calling EndModal(wxID_CANCEL) the right way to break out of
GC> a modal dialog?
Yes, absolutely, sorry if the docs are not clear about this. Using the
above call will result in the dialog being immediately hidden and destroyed
as soon as the control returns to the event loop (i.e. your event handler
returns) and will also make ShowModal() return wxID_CANCEL to the original
caller.
Regards,
VZ