>----Messaggio originale---- >Da: [email protected] >Data: 19/08/2009 14.30 >A: <[email protected]> >Ogg: RE: Getting back out of a dialog box. >
>OK, well Skip seems to work out of the top dialog, because >the top level button is defined as an OK button, but when >I drop down a level the button is defined as wxID_ADD. > >But here the "$event->Skip;" doesn't cause the event handler >to drop through. I can change wxID_ADD to be wx_ID_OK, but >that sort of defeats the purpose and means I will have >multiple OK buttons. Maybe 5 OK buttons. > >So what does wx_ID_OK do that deletes the dialog box and >exits in a controlled way? Use $dialog->EndModal( $status ); HTH Mattia
