wxGenericAboutBox

From WxWiki
Jump to navigation Jump to search

Source

Header:

#include <wx/aboutdlg.h>

Description

This function does the same thing as wxAboutBox except that it always uses the generic wxWidgets version of the dialog instead of the native one.

This is mainly useful if you need to customize the dialog by e.g. adding custom controls to it (customizing the native dialog is not currently supported).

Parameters

Parameter Data Type Description
info const wxAboutDialogInfo & structure that contains the copyright and author information
parent wxWindow* the parent window, default is null

Return Values

void: This function does not return anything.

Example Call

void MyFrame::ShowSimpleAboutDialog(wxCommandEvent& WXUNUSED(event))
{
  wxAboutDialogInfo info;
  info.SetName(_("My Program"));
  info.SetVersion(_("1.2.3 Beta"));
  info.SetDescription(_("This program does something great."));
  info.SetCopyright(wxT("(C) 2013 Me <[email protected]>"));
  wxGenericAboutBox(info);
}