From 7dfb6dc4a98863237e95683d3add779c0eff75a2 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Wed, 10 Dec 2008 16:20:07 +0000 Subject: [PATCH] use wxAboutBox() to make it evident a wxGrid refreshing bug under wxMSW (probably correlated to the window disabler used by the generic about box) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/grid/griddemo.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 602ee517c1..4b4b8be86b 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -30,6 +30,7 @@ #include "wx/colordlg.h" #include "wx/fontdlg.h" #include "wx/numdlg.h" +#include "wx/aboutdlg.h" #include "wx/grid.h" #include "wx/generic/gridctrl.h" @@ -1112,10 +1113,14 @@ void GridFrame::OnEditorHidden( wxGridEvent& ev ) void GridFrame::About( wxCommandEvent& WXUNUSED(ev) ) { - (void)wxMessageBox( _T("\n\nwxGrid demo \n\n") - _T("Michael Bedward, Julian Smart, Vadim Zeitlin"), - _T("About"), - wxOK ); + wxAboutDialogInfo aboutInfo; + aboutInfo.SetName(wxT("wxGrid demo")); + aboutInfo.SetDescription(_("wxGrid sample program")); + aboutInfo.AddDeveloper(wxT("Michael Bedward")); + aboutInfo.AddDeveloper(wxT("Julian Smart")); + aboutInfo.AddDeveloper(wxT("Vadim Zeitlin")); + + wxAboutBox(aboutInfo); } -- 2.45.2