]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/splash.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     interface of wxSplashScreen 
   4 // Author:      wxWidgets team 
   6 // Licence:     wxWindows license 
   7 ///////////////////////////////////////////////////////////////////////////// 
  12     wxSplashScreen shows a window with a thin border, displaying a bitmap 
  13     describing your application. 
  15     Show it in application initialisation, and then either explicitly destroy 
  16     it or let it time-out. 
  22       if (bitmap.LoadFile("splash16.png", wxBITMAP_TYPE_PNG)) 
  24           wxSplashScreen* splash = new wxSplashScreen(bitmap, 
  25               wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT, 
  26               6000, NULL, -1, wxDefaultPosition, wxDefaultSize, 
  27               wxBORDER_SIMPLE|wxSTAY_ON_TOP); 
  35 class wxSplashScreen 
: public wxFrame
 
  39         Construct the splash screen passing a bitmap, a style, a timeout, a window id, 
  40         optional position and size, and a window style. 
  42         @a splashStyle is a bitlist of some of the following: 
  43         - wxSPLASH_CENTRE_ON_PARENT 
  44         - wxSPLASH_CENTRE_ON_SCREEN 
  49         @a milliseconds is the timeout in milliseconds. 
  51     wxSplashScreen(const wxBitmap
& bitmap
, long splashStyle
, 
  55                    const wxPoint
& pos 
= wxDefaultPosition
, 
  56                    const wxSize
& size 
= wxDefaultSize
, 
  57                    long style 
= wxBORDER_SIMPLE
|wxFRAME_NO_TASKBAR
|wxSTAY_ON_TOP
); 
  60         Destroys the splash screen. 
  62     virtual ~wxSplashScreen(); 
  65         Returns the splash style (see wxSplashScreen() for details). 
  67     long GetSplashStyle() const; 
  70         Returns the window used to display the bitmap. 
  72     wxSplashScreenWindow
* GetSplashWindow() const; 
  75         Returns the timeout in milliseconds. 
  77     int GetTimeout() const; 
  80         Reimplement this event handler if you want to set an application variable on 
  81         window destruction, for example. 
  83     void OnCloseWindow(wxCloseEvent
& event
);