]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/busyinfo.cpp
add a unit test for new events (see #10000)
[wxWidgets.git] / src / generic / busyinfo.cpp
index 4d527e1555d6fbe26042fbe9d9f8d49fefdb97b1..ca53631e333129b4e961168562176cb2ee387b6d 100644 (file)
@@ -115,6 +115,12 @@ wxInfoFrame::wxInfoFrame(wxWindow *parent, const wxString& message)
 wxBusyInfo::wxBusyInfo(const wxString& message, wxWindow *parent)
 {
     m_InfoFrame = new wxInfoFrame( parent, message);
+    if ( parent && parent->HasFlag(wxSTAY_ON_TOP) )
+    {
+        // we must have this flag to be in front of our parent if it has it
+        m_InfoFrame->SetWindowStyleFlag(wxSTAY_ON_TOP);
+    }
+
     m_InfoFrame->Show(true);
     m_InfoFrame->Refresh();
     m_InfoFrame->Update();