]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/dialog.cpp
implement a runtime check to test if wxEvent::Clone is implemented correctly for...
[wxWidgets.git] / src / palmos / dialog.cpp
index 32535b9bca05bd15525b366072b7309a6e0f8628..971d771aae7cdfbecef30ff1383179b4afa20024 100644 (file)
@@ -168,6 +168,9 @@ wxWindow *wxDialog::FindSuitableParent() const
 
 bool wxDialog::Show(bool show)
 {
+    if (show && CanDoLayoutAdaptation())
+        DoLayoutAdaptation();
+
     return wxTopLevelWindowPalm::Show (show);
 }
 
@@ -178,6 +181,8 @@ void wxDialog::Raise()
 // show dialog modally
 int wxDialog::ShowModal()
 {
+    Show (true);
+
     if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) {
         return 0;
     }