]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/dialog.cpp
Added wxThread::GetMainId().
[wxWidgets.git] / src / palmos / dialog.cpp
index 32535b9bca05bd15525b366072b7309a6e0f8628..4358cfef5f4f56fc7400af2e89bd54580e67b079 100644 (file)
@@ -36,7 +36,7 @@
 #endif
 
 #include "wx/evtloop.h"
-#include "wx/ptr_scpd.h"
+#include "wx/scopedptr.h"
 
 // ----------------------------------------------------------------------------
 // wxWin macros
@@ -161,13 +161,11 @@ wxDialog::~wxDialog()
 // showing the dialogs
 // ----------------------------------------------------------------------------
 
-wxWindow *wxDialog::FindSuitableParent() const
-{
-    return NULL;
-}
-
 bool wxDialog::Show(bool show)
 {
+    if (show && CanDoLayoutAdaptation())
+        DoLayoutAdaptation();
+
     return wxTopLevelWindowPalm::Show (show);
 }
 
@@ -178,6 +176,8 @@ void wxDialog::Raise()
 // show dialog modally
 int wxDialog::ShowModal()
 {
+    Show (true);
+
     if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) {
         return 0;
     }