From: Mattia B. <mb...@ds...> - 2002-10-12 19:38:22
|
> is there anyway to pass something besides a return code from a dialog? > looking in the documentation, it seems that GetReturnCode is the only > way to communicate. This is correct; of course, you can store data in instance variables: my $dlg = MyDialog->new( ... ); my $ret = $dlg->ShowModal; if( $ret == wxID_OK ) { my $data = $dlg->{DATA}; # ->{DATA} has been initialised # by MyDialog::OnOk } $dlg->Destroy; HTH Mattia |