Add a simple example to make it easier to get started (by copy&paste).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -29,6 +29,22 @@
|
|||||||
don't support URLs, licence text nor custom icons in the about dialog and if
|
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
|
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.
|
so you should avoid specifying these fields to achieve more native look and feel.
|
||||||
|
|
||||||
|
Example of usage:
|
||||||
|
@code
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
@endcode
|
||||||
|
|
||||||
@library{wxadv}
|
@library{wxadv}
|
||||||
@category{cmndlg,data}
|
@category{cmndlg,data}
|
||||||
|
Reference in New Issue
Block a user