#endif
#include "wx/evtloop.h"
-#include "wx/ptr_scpd.h"
+#include "wx/scopedptr.h"
// ----------------------------------------------------------------------------
// wxWin macros
// showing the dialogs
// ----------------------------------------------------------------------------
-wxWindow *wxDialog::FindSuitableParent() const
-{
- return NULL;
-}
-
bool wxDialog::Show(bool show)
{
+ if (show && CanDoLayoutAdaptation())
+ DoLayoutAdaptation();
+
return wxTopLevelWindowPalm::Show (show);
}
// show dialog modally
int wxDialog::ShowModal()
{
+ Show (true);
+
if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) {
return 0;
}