- wxStaticBitmap *bmp = new wxStaticBitmap(this, -1, icon);
-
- const int iconSize = icon.GetWidth();
-
- c = new wxLayoutConstraints;
- c->top.SameAs(this, wxTop, 2*LAYOUT_Y_MARGIN);
- c->left.RightOf(bmp, 2*LAYOUT_X_MARGIN);
- c->right.SameAs(this, wxRight, 2*LAYOUT_X_MARGIN);
- c->height.Absolute(2*text->GetSize().GetHeight());
- text->SetConstraints(c);
-
- c = new wxLayoutConstraints;
- c->centreY.SameAs(text, wxCentreY);
- c->left.SameAs(this, wxLeft, 2*LAYOUT_X_MARGIN);
- c->width.Absolute(iconSize);
- c->height.Absolute(iconSize);
- bmp->SetConstraints(c);
-
- c = new wxLayoutConstraints;
- c->bottom.SameAs(this, wxBottom, 2*LAYOUT_X_MARGIN);
- c->right.SameAs(this, wxRight, 2*LAYOUT_X_MARGIN);
- c->width.Absolute(sizeBtn.GetWidth());
- c->height.Absolute(sizeBtn.GetHeight());
- btnClose->SetConstraints(c);
-
- c = new wxLayoutConstraints;
- c->bottom.SameAs(this, wxBottom, 2*LAYOUT_X_MARGIN);
- c->right.LeftOf(btnClose, 2*LAYOUT_X_MARGIN);
- c->width.Absolute(sizeBtn.GetWidth());
- c->height.Absolute(sizeBtn.GetHeight());
- btnNext->SetConstraints(c);
-
- c = new wxLayoutConstraints;
- c->bottom.SameAs(this, wxBottom, 2*LAYOUT_X_MARGIN);
- c->left.SameAs(this, wxLeft, 2*LAYOUT_X_MARGIN);
- c->width.AsIs();
- c->height.AsIs();
- m_checkbox->SetConstraints(c);
- m_checkbox->SetValue(showAtStartup);
+ m_text = new wxTextCtrl(this, wxID_ANY, wxEmptyString,
+ wxDefaultPosition, wxSize(200, 160),
+ wxTE_MULTILINE |
+ wxTE_READONLY |
+ wxTE_NO_VSCROLL |
+ wxTE_RICH | // a hack to get rid of vert scrollbar
+ wxSUNKEN_BORDER);
+#if defined(__WXMSW__)
+ m_text->SetFont(wxFont(12, wxSWISS, wxNORMAL, wxNORMAL));
+#endif
+
+//#if defined(__WXPM__)
+ //
+ // The only way to get icons into an OS/2 static bitmap control
+ //
+// wxBitmap vBitmap;
+
+// vBitmap.SetId(wxICON_TIP); // OS/2 specific bitmap method--OS/2 wxBitmaps all have an ID.
+// // and for StatBmp's under OS/2 it MUST be a valid resource ID.
+//
+// wxStaticBitmap* bmp = new wxStaticBitmap(this, wxID_ANY, vBitmap);
+//
+//#else
+
+ wxIcon icon = wxArtProvider::GetIcon(wxART_TIP, wxART_CMN_DIALOG);
+ wxStaticBitmap *bmp = new wxStaticBitmap(this, wxID_ANY, icon);
+
+//#endif
+
+ // 2) put them in boxes
+
+ wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );