git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27922
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
#endif // USE_FONTDLG_GENERIC
}
#endif // USE_FONTDLG_GENERIC
void MyFrame::LogDialog(wxCommandEvent& WXUNUSED(event))
{
// calling wxYield() (as ~wxBusyCursor does) shouldn't result in messages
void MyFrame::LogDialog(wxCommandEvent& WXUNUSED(event))
{
// calling wxYield() (as ~wxBusyCursor does) shouldn't result in messages
wxLogMessage(wxT("And this is the same dialog but with only one message."));
}
wxLogMessage(wxT("And this is the same dialog but with only one message."));
}
+#endif // wxUSE_LOG_DIALOG
void MyFrame::MessageBox(wxCommandEvent& WXUNUSED(event) )
{
void MyFrame::MessageBox(wxCommandEvent& WXUNUSED(event) )
{
if (dialog.ShowModal() == wxID_OK)
{
if (dialog.ShowModal() == wxID_OK)
{
- wxMessageDialog dialog2(this, dialog.GetValue(), _T("Got string"));
- dialog2.ShowModal();
+ wxMessageBox(dialog.GetValue(), _T("Got string"), wxOK | wxICON_INFORMATION, this);
}
}
#endif // wxUSE_TEXTDLG
}
}
#endif // wxUSE_TEXTDLG
dc.DrawText(_T("wxWidgets common dialogs test application"), 10, 10);
}
dc.DrawText(_T("wxWidgets common dialogs test application"), 10, 10);
}
+#if USE_MODAL_PRESENTATION
+
// ----------------------------------------------------------------------------
// MyModelessDialog
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// MyModelessDialog
// ----------------------------------------------------------------------------
+
+#endif // USE_MODAL_PRESENTATION
+
wxColour m_canvasTextColour;
};
wxColour m_canvasTextColour;
};
+#if USE_MODAL_PRESENTATION
+
// A custom modeless dialog
class MyModelessDialog : public wxDialog
{
// A custom modeless dialog
class MyModelessDialog : public wxDialog
{
+#endif // USE_MODAL_PRESENTATION
+
// Define a new frame type
class MyFrame: public wxFrame
{
// Define a new frame type
class MyFrame: public wxFrame
{