From 7ebc60b1fe792bedfe3ee06d630150b371be8f04 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 9 Feb 2017 22:27:47 +0100 Subject: [PATCH] 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. --- samples/stc/stctest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp index c4c89d8030..41cf9c2cef 100644 --- a/samples/stc/stctest.cpp +++ b/samples/stc/stctest.cpp @@ -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);