#include "message_dialog.h"
#include "wx_util.h"
+#include "static_text.h"
MessageDialog::MessageDialog (wxWindow* parent, wxString title, wxString message)
: wxDialog (parent, wxID_ANY, title)
{
wxSizer* sizer = new wxBoxSizer (wxVERTICAL);
- wxStaticText* text = new wxStaticText (this, wxID_ANY, message);
+ wxStaticText* text = new StaticText (this, message);
sizer->Add (text, 1, wxALL, DCPOMATIC_DIALOG_BORDER);
wxSizer* buttons = CreateSeparatedButtonSizer (wxCLOSE);
if (buttons) {