}
#endif // USE_FONTDLG_GENERIC
+#if wxUSE_LOG_DIALOG
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."));
}
+#endif // wxUSE_LOG_DIALOG
void MyFrame::MessageBox(wxCommandEvent& WXUNUSED(event) )
{
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
dc.DrawText(_T("wxWidgets common dialogs test application"), 10, 10);
}
+#if USE_MODAL_PRESENTATION
+
// ----------------------------------------------------------------------------
// MyModelessDialog
// ----------------------------------------------------------------------------
event.Skip();
}
}
+
+#endif // USE_MODAL_PRESENTATION
+
wxColour m_canvasTextColour;
};
+#if USE_MODAL_PRESENTATION
+
// A custom modeless dialog
class MyModelessDialog : public wxDialog
{
DECLARE_EVENT_TABLE()
};
+#endif // USE_MODAL_PRESENTATION
+
// Define a new frame type
class MyFrame: public wxFrame
{