Show the version of Scintilla used in the about dialog of the stc sample

Call wxStyledTextCtrl::GetLibraryVersionInfo() to see what version of Scintilla is being used.
This commit is contained in:
Artur Wieczorek 2017-02-09 22:27:47 +01:00
parent 02276c6ebb
commit 7ebc60b1fe

View File

@ -617,6 +617,9 @@ AppAbout::AppAbout (wxWindow *parent,
m_timer->Start (milliseconds, wxTIMER_ONE_SHOT);
}
// Get version of Scintilla
wxVersionInfo vi = wxStyledTextCtrl::GetLibraryVersionInfo();
// sets the application title
SetTitle (_("About .."));
@ -628,7 +631,7 @@ AppAbout::AppAbout (wxWindow *parent,
1, wxEXPAND | wxALIGN_LEFT);
aboutinfo->Add (new wxStaticText(this, wxID_ANY, _("Version: ")),
0, wxALIGN_LEFT);
aboutinfo->Add (new wxStaticText(this, wxID_ANY, APP_VERSION),
aboutinfo->Add (new wxStaticText(this, wxID_ANY, wxString::Format("%s (%s)", APP_VERSION, vi.GetVersionString())),
1, wxEXPAND | wxALIGN_LEFT);
aboutinfo->Add (new wxStaticText(this, wxID_ANY, _("Licence type: ")),
0, wxALIGN_LEFT);