22 #include "wxMessageDialogCheckbox.hh"
30 const wxString& title,
35 wxDialog( parent, 0, title, pos, size, style | wxRESIZE_BORDER |wxDEFAULT_DIALOG_STYLE )
39 int w = size.GetWidth();
40 int h = size.GetHeight();
41 int length = text.Length();
42 h = (double)((length*180)/(double)(w-10))+70;
44 wxSize buttonSize(80,30);
45 wxSize checkboxSize(w,30);
47 this->SetSizeHints( newSize, wxDefaultSize );
48 this->SetSize(newSize);
51 bSizer2 =
new wxBoxSizer( wxVERTICAL );
54 displayText_ =
new wxStaticText(
this,wxID_ANY,wxT(
"test"));
59 checkBox_ =
new wxCheckBox(
this, wxID_CHECKBOX,
60 wxT(
"Do not bother me again!"),
61 wxDefaultPosition, checkboxSize, 0 );
67 m_button2 =
new wxButton(
this, wxID_CANCEL);
69 else if (style & wxYES_NO){
70 m_button1 =
new wxButton(
this, wxID_YES);
83 this->SetSizer( bSizer2 );
wxStdDialogButtonSizer * m_sdbSizer2
wxMessageDialogCheckbox(wxWindow *parent, const wxString &title=wxT("Ok dialog with check box"), const wxString &text=wxT("Your question?"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(200, 120), long style=wxOK|wxDEFAULT_DIALOG_STYLE)
wxStaticText * displayText_
~wxMessageDialogCheckbox()