X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2158f4d798650d7f8cc59ba36e115679b0effe1b..da1f0e87e2c24ad9ee7647261dd986ad3e8d60eb:/src/palmos/dialog.cpp diff --git a/src/palmos/dialog.cpp b/src/palmos/dialog.cpp index 88c4620e43..32535b9bca 100644 --- a/src/palmos/dialog.cpp +++ b/src/palmos/dialog.cpp @@ -147,11 +147,14 @@ bool wxDialog::Create(wxWindow *parent, long style, const wxString& name) { - return false; + if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) ) + return false; + return true; } wxDialog::~wxDialog() { + Show (false); } // ---------------------------------------------------------------------------- @@ -165,7 +168,7 @@ wxWindow *wxDialog::FindSuitableParent() const bool wxDialog::Show(bool show) { - return false; + return wxTopLevelWindowPalm::Show (show); } void wxDialog::Raise() @@ -175,6 +178,9 @@ void wxDialog::Raise() // show dialog modally int wxDialog::ShowModal() { + if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) { + return 0; + } return -1; }