Display toolkit information in wxPG sample About box

This may help in diagnostics.
This commit is contained in:
Artur Wieczorek
2020-04-07 17:20:03 +02:00
parent 80fd70e8f1
commit 435764ee61

View File

@@ -2717,6 +2717,12 @@ void FormMain::OnShowHeader( wxCommandEvent& 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;
msg.Printf( "wxPropertyGrid Sample"
#if wxUSE_UNICODE
@@ -2735,8 +2741,8 @@ void FormMain::OnAbout(wxCommandEvent& WXUNUSED(event))
#endif
"\n\n"
"Programmed by %s\n\n"
"Using %s\n\n",
"Jaakko Salli", wxVERSION_STRING
"Using %s (%s)\n\n",
"Jaakko Salli", wxVERSION_STRING, toolkit
);
wxMessageBox(msg, "About", wxOK | wxICON_INFORMATION, this);