- wxString msg;
- msg.Printf( _T("This is the about dialog of minimal sample.\n")
- _T("Welcome to %s"), wxVERSION_STRING);
-
- wxMessageBox(msg, "About Minimal", wxOK | wxICON_INFORMATION, this);
-}
-
-void MyFrame::OnCreateLbox(wxCommandEvent& WXUNUSED(event))
-{
- for ( size_t n = 0; n < NUM_LBOXES; n++ )
- {
- m_lboxes.Add(new wxListBox(this, -1, wxPoint(m_pos, m_pos)));
- m_pos += POS_STEP;
- }
+ wxMessageBox(wxString::Format
+ (
+ "Welcome to %s!\n"
+ "\n"
+ "This is the minimal wxWidgets sample\n"
+ "running under %s.",
+ wxVERSION_STRING,
+ wxGetOsDescription()
+ ),
+ "About wxWidgets minimal sample",
+ wxOK | wxICON_INFORMATION,
+ this);