I'm trying to get a wxDialog derived class to return three states
essentially
wxID_OK, wxID_CANCEL and wxID_NO (or a some other event id)
Is there an easy way to do this?
Could I acheive the same effect by being able to raise a wxID_CANCEL button event to stop the ShowModal() call? If so, how?
Whatever value you pass to EndModal is what is returned by ShowModal. The default handlers for the okay and cancel buttons call EndModal with wxID_OK and wxID_CANCEL. YOu can do they same in your own button handlers.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!