Display toolkit information in wxPG sample About box
This may help in diagnostics.
This commit is contained in:
@@ -2717,6 +2717,12 @@ void FormMain::OnShowHeader( wxCommandEvent& event )
|
|||||||
|
|
||||||
void FormMain::OnAbout(wxCommandEvent& WXUNUSED(event))
|
void FormMain::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
|
wxPlatformInfo pi = wxPlatformInfo::Get();
|
||||||
|
wxString toolkit = wxString::Format("%s %i.%i.%i", pi.GetPortIdName(),
|
||||||
|
pi.GetToolkitMajorVersion(),
|
||||||
|
pi.GetToolkitMinorVersion(),
|
||||||
|
pi.GetToolkitMicroVersion());
|
||||||
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
msg.Printf( "wxPropertyGrid Sample"
|
msg.Printf( "wxPropertyGrid Sample"
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
@@ -2735,8 +2741,8 @@ void FormMain::OnAbout(wxCommandEvent& WXUNUSED(event))
|
|||||||
#endif
|
#endif
|
||||||
"\n\n"
|
"\n\n"
|
||||||
"Programmed by %s\n\n"
|
"Programmed by %s\n\n"
|
||||||
"Using %s\n\n",
|
"Using %s (%s)\n\n",
|
||||||
"Jaakko Salli", wxVERSION_STRING
|
"Jaakko Salli", wxVERSION_STRING, toolkit
|
||||||
);
|
);
|
||||||
|
|
||||||
wxMessageBox(msg, "About", wxOK | wxICON_INFORMATION, this);
|
wxMessageBox(msg, "About", wxOK | wxICON_INFORMATION, this);
|
||||||
|
Reference in New Issue
Block a user