From 479101cac1fdca97a3c130ee05a7ff4ebe177edf Mon Sep 17 00:00:00 2001
From: Robin Dunn <robin@alldunn.com>
Date: Mon, 27 May 2002 19:23:10 +0000
Subject: [PATCH] Changed the default style flags on wxSplashScreen

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/splash.tex    | 4 ++--
 include/wx/generic/splash.h | 8 ++++++--
 wxPython/src/frames.i       | 2 +-
 wxPython/src/msw/frames.cpp | 2 +-
 4 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/docs/latex/wx/splash.tex b/docs/latex/wx/splash.tex
index cd0193bd2f..c3aaff46c0 100644
--- a/docs/latex/wx/splash.tex
+++ b/docs/latex/wx/splash.tex
@@ -17,7 +17,7 @@ Example usage:
   }
   wxYield();
 \end{verbatim}
- 
+
 \wxheading{Derived from}
 
 \helpref{wxFrame}{wxframe}\\
@@ -33,7 +33,7 @@ Example usage:
 
 \membersection{wxSplashScreen::wxSplashScreen}\label{wxsplashscreenwxsplashscreen}
 
-\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}}
+\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}}
 
 Construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position
 and size, and a window style.
diff --git a/include/wx/generic/splash.h b/include/wx/generic/splash.h
index c5820ef924..dc5c195930 100644
--- a/include/wx/generic/splash.h
+++ b/include/wx/generic/splash.h
@@ -43,9 +43,13 @@ class WXDLLEXPORT wxSplashScreenWindow;
 class WXDLLEXPORT wxSplashScreen: public wxFrame
 {
 public:
-    // for RTTI macros obly
+    // for RTTI macros only
     wxSplashScreen() {};
-    wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSIMPLE_BORDER|wxFRAME_FLOAT_ON_PARENT);
+    wxSplashScreen(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);
     ~wxSplashScreen();
 
     void OnCloseWindow(wxCloseEvent& event);
diff --git a/wxPython/src/frames.i b/wxPython/src/frames.i
index 465699722e..03cc0edfa2 100644
--- a/wxPython/src/frames.i
+++ b/wxPython/src/frames.i
@@ -283,7 +283,7 @@ public:
                    wxWindow* parent, wxWindowID id,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
-                   long style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxFRAME_FLOAT_ON_PARENT);
+                   long style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP);
 
     %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
 
diff --git a/wxPython/src/msw/frames.cpp b/wxPython/src/msw/frames.cpp
index 50a22c7fb9..610a8a9d34 100644
--- a/wxPython/src/msw/frames.cpp
+++ b/wxPython/src/msw/frames.cpp
@@ -2451,7 +2451,7 @@ static PyObject *_wrap_new_wxSplashScreen(PyObject *self, PyObject *args, PyObje
     wxWindowID  _arg4;
     wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
     wxSize * _arg6 = (wxSize *) &wxDefaultSize;
-    long  _arg7 = (long ) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxFRAME_FLOAT_ON_PARENT;
+    long  _arg7 = (long ) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP;
     PyObject * _argo0 = 0;
     PyObject * _argo3 = 0;
     wxPoint  temp;
-- 
2.50.0

