Code: Select all
void MainFrame::OnSelectAbout(wxCommandEvent& event)
{
wxAboutDialogInfo aboutInfo;
aboutInfo.SetName("SampleHive");
aboutInfo.SetIcon(wxIcon(ICON_APP));
aboutInfo.AddArtist("Apoorv");
aboutInfo.SetVersion("0.1", "Version 0.1");
aboutInfo.SetDescription("A simple, modern audio sample browser/manager for GNU/Linux.");
aboutInfo.SetCopyright("(C) 2020-2021");
aboutInfo.SetWebSite("http://samplehive.gitlab.io");
aboutInfo.AddDeveloper("Apoorv");
aboutInfo.SetLicence(wxString::FromAscii(
" SampleHive \n"
" Copyright (C) 2021 Apoorv \n"
"\n"
"This program is free software: you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License as published by\n"
"the Free Software Foundation, either version 3 of the License, or\n"
"(at your option) any later version.\n"
"\n"
"This program is distributed in the hope that it will be useful,\n"
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
"GNU General Public License for more details.\n"
"\n"
"You should have received a copy of the GNU General Public License\n"
"along with this program. If not, see <https://www.gnu.org/licenses/>.\n"
));
wxAboutBox(aboutInfo);
}
Also is it necessary to have wxString::FromAscii(), in the SetLicense(). I grabbed that from dialog demo in wx source.