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:
parent
02276c6ebb
commit
7ebc60b1fe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user