1 \section{\class{wxSplashScreen
}}\label{wxsplashscreen
}
3 wxSplashScreen shows a window with a thin border, displaying a bitmap describing your
4 application. Show it in application initialisation, and then either explicitly destroy
11 if (bitmap.LoadFile("splash16.png", wxBITMAP_TYPE_PNG))
13 wxSplashScreen* splash = new wxSplashScreen(bitmap,
14 wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
15 6000, NULL, -
1, wxDefaultPosition, wxDefaultSize,
16 wxSIMPLE_BORDER|wxSTAY_ON_TOP);
21 \wxheading{Derived from
}
23 \helpref{wxFrame
}{wxframe
}\\
24 \helpref{wxWindow
}{wxwindow
}\\
25 \helpref{wxEvtHandler
}{wxevthandler
}\\
26 \helpref{wxObject
}{wxobject
}
28 \wxheading{Include files
}
34 \helpref{wxAdv
}{librarieslist
}
36 \latexignore{\rtfignore{\wxheading{Members
}}}
38 \membersection{wxSplashScreen::wxSplashScreen
}\label{wxsplashscreenwxsplashscreen
}
40 \func{}{wxSplashScreen
}{\param{const wxBitmap\&
}{bitmap
},
\param{long
}{splashStyle
},
\param{int
}{milliseconds
},
\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\param{long
}{style = wxSIMPLE
\_BORDER|wxFRAME
\_NO\_TASKBAR|wxSTAY
\_ON\_TOP}}
42 Construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position
43 and size, and a window style.
45 {\it splashStyle
} is a bitlist of some of the following:
47 \begin{itemize
}\itemsep=
0pt
48 \item wxSPLASH
\_CENTRE\_ON\_PARENT
49 \item wxSPLASH
\_CENTRE\_ON\_SCREEN
50 \item wxSPLASH
\_NO\_CENTRE
51 \item wxSPLASH
\_TIMEOUT
52 \item wxSPLASH
\_NO\_TIMEOUT
55 {\it milliseconds
} is the timeout in milliseconds.
57 \membersection{wxSplashScreen::
\destruct{wxSplashScreen
}}\label{wxsplashscreendtor
}
59 \func{}{\destruct{wxSplashScreen
}}{\void}
61 Destroys the splash screen.
63 \membersection{wxSplashScreen::OnCloseWindow
}\label{wxsplashscreenonclosewindow
}
65 \func{void
}{OnCloseWindow
}{\param{wxCloseEvent\&
}{event
}}
67 Reimplement this event handler if you want to set an application variable on window destruction, for example.
69 \membersection{wxSplashScreen::GetSplashStyle
}\label{wxsplashscreengetsplashstyle
}
71 \constfunc{long
}{GetSplashStyle
}{\void}
73 Returns the splash style (see
\helpref{wxSplashScreen::wxSplashScreen
}{wxsplashscreenwxsplashscreen
} for
76 \membersection{wxSplashScreen::GetSplashWindow
}\label{wxsplashscreengetsplashwindow
}
78 \constfunc{wxSplashScreenWindow*
}{GetSplashWindow
}{\void}
80 Returns the window used to display the bitmap.
82 \membersection{wxSplashScreen::GetTimeout
}\label{wxsplashscreengettimeout
}
84 \constfunc{int
}{GetTimeout
}{\void}
86 Returns the timeout in milliseconds.