![]() ![]() ![]() ![]() wxsplashscreenwxsplashscreen 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 include files <wx/splash.h> members
wxsplashscreen::wxsplashscreen
wxsplashscreen::wxsplashscreenwxsplashscreen(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::~wxsplashscreen~wxsplashscreen() destroys the splash screen.
wxsplashscreen::onclosewindowvoid onclosewindow(wxcloseevent& event) reimplement this event handler if you want to set an application variable on window destruction, for example.
wxsplashscreen::getsplashstylelong getsplashstyle() const returns the splash style (see wxsplashscreen::wxsplashscreen for details).
wxsplashscreen::getsplashwindowwxsplashscreenwindow* getsplashwindow() const returns the window used to display the bitmap.
wxsplashscreen::gettimeoutint gettimeout() const returns the timeout in milliseconds.
|