X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2158f4d798650d7f8cc59ba36e115679b0effe1b..f50491352a4338859cd7361ce483093e80c3679c:/src/palmos/dialog.cpp?ds=sidebyside diff --git a/src/palmos/dialog.cpp b/src/palmos/dialog.cpp index 88c4620e43..971d771aae 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,10 @@ wxWindow *wxDialog::FindSuitableParent() const bool wxDialog::Show(bool show) { - return false; + if (show && CanDoLayoutAdaptation()) + DoLayoutAdaptation(); + + return wxTopLevelWindowPalm::Show (show); } void wxDialog::Raise() @@ -175,6 +181,11 @@ void wxDialog::Raise() // show dialog modally int wxDialog::ShowModal() { + Show (true); + + if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) { + return 0; + } return -1; }