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
}
32 \latexignore{\rtfignore{\wxheading{Members
}}}
34 \membersection{wxSplashScreen::wxSplashScreen
}\label{wxsplashscreenwxsplashscreen
}
36 \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}}
38 Construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position
39 and size, and a window style.
41 {\it splashStyle
} is a bitlist of some of the following:
43 \begin{itemize
}\itemsep=
0pt
44 \item wxSPLASH
\_CENTRE\_ON\_PARENT
45 \item wxSPLASH
\_CENTRE\_ON\_SCREEN
46 \item wxSPLASH
\_NO\_CENTRE
47 \item wxSPLASH
\_TIMEOUT
48 \item wxSPLASH
\_NO\_TIMEOUT
51 {\it milliseconds
} is the timeout in milliseconds.
53 \membersection{wxSplashScreen::
\destruct{wxSplashScreen
}}\label{wxsplashscreendtor
}
55 \func{}{\destruct{wxSplashScreen
}}{\void}
57 Destroys the splash screen.
59 \membersection{wxSplashScreen::OnCloseWindow
}\label{wxsplashscreenonclosewindow
}
61 \func{void
}{OnCloseWindow
}{\param{wxCloseEvent\&
}{event
}}
63 Reimplement this event handler if you want to set an application variable on window destruction, for example.
65 \membersection{wxSplashScreen::GetSplashStyle
}\label{wxsplashscreengetsplashstyle
}
67 \constfunc{long
}{GetSplashStyle
}{\void}
69 Returns the splash style (see
\helpref{wxSplashScreen::wxSplashScreen
}{wxsplashscreenwxsplashscreen
} for
72 \membersection{wxSplashScreen::GetSplashWindow
}\label{wxsplashscreengetsplashwindow
}
74 \constfunc{wxSplashScreenWindow*
}{GetSplashWindow
}{\void}
76 Returns the window used to display the bitmap.
78 \membersection{wxSplashScreen::GetTimeout
}\label{wxsplashscreengettimeout
}
80 \constfunc{int
}{GetTimeout
}{\void}
82 Returns the timeout in milliseconds.