]> git.saurik.com Git - wxWidgets.git/commitdiff
added version number to the about box
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 7 Jan 1999 16:24:18 +0000 (16:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 7 Jan 1999 16:24:18 +0000 (16:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/minimal/minimal.cpp

index 602c65241fa504b4fe980790018bd1668ac1b149..cb1b96765cac3f7b8c028f36e4a7572615a180b0 100644 (file)
@@ -178,6 +178,17 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
 
 void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 {
-    wxMessageBox("This is a minimal sample\nA second line in the message box",
-                 "About Minimal", wxOK | wxICON_INFORMATION, this);
+    wxString msg;
+    msg.Printf("This is the about dialog of minimal sample.\n"
+               "Welcome to %s"
+#ifdef wxBETA_NUMBER
+               " (beta %d)!"
+#endif // wxBETA_NUMBER
+               , wxVERSION_STRING
+#ifdef wxBETA_NUMBER
+               , wxBETA_NUMBER
+#endif // wxBETA_NUMBER
+              );
+
+    wxMessageBox(msg, "About Minimal", wxOK | wxICON_INFORMATION, this);
 }