]>
git.saurik.com Git - wxWidgets.git/blob - interface/splash.h
57df843ad2a9a32f6bba3b268d2d3bd9c7d73d80
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxSplashScreen class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 wxSplashScreen shows a window with a thin border, displaying a bitmap
15 application. Show it in application initialisation, and then either explicitly
17 it or let it time-out.
23 if (bitmap.LoadFile("splash16.png", wxBITMAP_TYPE_PNG))
25 wxSplashScreen* splash = new wxSplashScreen(bitmap,
26 wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
27 6000, @NULL, -1, wxDefaultPosition, wxDefaultSize,
28 wxBORDER_SIMPLE|wxSTAY_ON_TOP);
36 class wxSplashScreen
: public wxFrame
40 Construct the splash screen passing a bitmap, a style, a timeout, a window id,
42 and size, and a window style.
44 @e splashStyle is a bitlist of some of the following:
46 wxSPLASH_CENTRE_ON_PARENT
47 wxSPLASH_CENTRE_ON_SCREEN
52 @e milliseconds is the timeout in milliseconds.
54 wxSplashScreen(const wxBitmap
& bitmap
, long splashStyle
,
58 const wxPoint
& pos
= wxDefaultPosition
,
59 const wxSize
& size
= wxDefaultSize
,
60 long style
= wxBORDER_SIMPLE
|wxFRAME_NO_TASKBAR
|wxSTAY_ON_TOP
);
63 Destroys the splash screen.
68 Returns the splash style (see wxSplashScreen() for
71 long GetSplashStyle();
74 Returns the window used to display the bitmap.
76 wxSplashScreenWindow
* GetSplashWindow();
79 Returns the timeout in milliseconds.
84 Reimplement this event handler if you want to set an application variable on
85 window destruction, for example.
87 void OnCloseWindow(wxCloseEvent
& event
);