OSX specific: Set SplashScreen as TopWindow
This commit is contained in:
parent
b82de22caa
commit
13dcc3e7a0
1 changed files with 7 additions and 2 deletions
|
@ -84,8 +84,13 @@ class SplashScreen : public wxSplashScreen
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxPoint pos = wxDefaultPosition, bool is_decorated = false)
|
SplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxPoint pos = wxDefaultPosition, bool is_decorated = false)
|
||||||
: wxSplashScreen(bitmap, splashStyle, milliseconds, nullptr, wxID_ANY,
|
: wxSplashScreen(bitmap, splashStyle, milliseconds, nullptr, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||||
wxDefaultPosition, wxDefaultSize, wxSIMPLE_BORDER | wxFRAME_NO_TASKBAR )
|
#ifdef __APPLE__
|
||||||
|
wxSIMPLE_BORDER | wxFRAME_NO_TASKBAR | wxSTAY_ON_TOP
|
||||||
|
#else
|
||||||
|
wxSIMPLE_BORDER | wxFRAME_NO_TASKBAR
|
||||||
|
#endif // !__APPLE__
|
||||||
|
)
|
||||||
{
|
{
|
||||||
wxASSERT(bitmap.IsOk());
|
wxASSERT(bitmap.IsOk());
|
||||||
m_main_bitmap = bitmap;
|
m_main_bitmap = bitmap;
|
||||||
|
|
Loading…
Reference in a new issue