$szTitle = "wxsplashscreen"; include "./_header.inc"; ?>
wxsplashscreen shows a window with a thin border, displaying a bitmap describing your application. show it in application initialisation, and then either explicitly destroy it or let it time-out.
example usage:
wxbitmap bitmap; if (bitmap.loadfile("splash16.png", wxbitmap_type_png)) { wxsplashscreen* splash = new wxsplashscreen(bitmap, wxsplash_centre_on_screen|wxsplash_timeout, 6000, null, -1, wxdefaultposition, wxdefaultsize, wxsimple_border|wxstay_on_top); } wxyield();derived from
wxframe
wxwindow
wxevthandler
wxobject
include files
<wx/splash.h>
members
wxsplashscreen::wxsplashscreen
wxsplashscreen::~wxsplashscreen
wxsplashscreen::onclosewindow
wxsplashscreen::getsplashstyle
wxsplashscreen::getsplashwindow
wxsplashscreen::gettimeout
wxsplashscreen(const wxbitmap& bitmap, long splashstyle, int milliseconds, wxwindow* parent, wxwindowid id, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = wxsimple_border|wxframe_no_taskbar|wxstay_on_top)
construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position and size, and a window style.
splashstyle is a bitlist of some of the following:
milliseconds is the timeout in milliseconds.
~wxsplashscreen()
destroys the splash screen.
void onclosewindow(wxcloseevent& event)
reimplement this event handler if you want to set an application variable on window destruction, for example.
long getsplashstyle() const
returns the splash style (see wxsplashscreen::wxsplashscreen for details).
wxsplashscreenwindow* getsplashwindow() const
returns the window used to display the bitmap.
int gettimeout() const
returns the timeout in milliseconds.
include "./_footer.inc"; ?>