Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
#include <wx/aboutdlg.h>
Detailed Description
wxAboutDialogInfo contains information shown in the standard About dialog displayed by the wxAboutBox()
function.
This class contains the general information about the program, such as its name, version, copyright and so on, as well
as lists of the program developers, documentation writers, artists and translators. The simple properties from the
former group are represented as a string with the exception of the program icon and the program web site, while the
lists from the latter group are stored as wxArrayString and can be either set entirely at once using
wxAboutDialogInfo::SetDevelopers and similar functions or built one by one using
wxAboutDialogInfo::AddDeveloper etc.
Please also notice that while all the main platforms have the native implementation of the about dialog, they are often
more limited than the generic version provided by wxWidgets and so the generic version is used if
wxAboutDialogInfo has any fields not supported by the native version. Currently GTK+ version supports all the
possible fields natively but MSW and Mac versions don't support URLs, licence text nor custom icons in the about
dialog and if either of those is used, wxAboutBox() will automatically use the generic version so you should avoid
specifying these fields to achieve more native look and feel.
Example of usage:
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
wxAboutDialogInfo aboutInfo;
aboutInfo.SetName("MyApp");
aboutInfo.SetVersion(MY_APP_VERSION_STRING);
aboutInfo.SetDescription(_("My wxWidgets-based application!"));
aboutInfo.SetCopyright("(C) 1992-2010");
aboutInfo.SetWebSite("http://myapp.org");
aboutInfo.AddDeveloper("My Self");
wxAboutBox(aboutInfo);
}
Library: wxAdvanced
Category: Common Dialogs, Data Structures
See Also
wxAboutDialogInfo::SetArtists
Default constructor leaves all fields are initially uninitialized, in general you should call at least SetVersion(),
SetCopyright() and SetDescription().
Set the long, multiline string containing the text of the program licence.
Only GTK+ version supports showing the licence text in the native about dialog currently so the generic version will
be used under all the other platforms if this method is called. To preserve the native look and feel it is advised that
you do not call this method but provide a separate menu item in the "Help" menu for displaying the text of your
program licence.
Set the web site for the program and its description (which defaults to url itself if empty).
Please notice that only GTK+ version currently supports showing the link in the native about dialog so if this
method is called, the generic version will be used under all the other platforms.