]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / html / htmlwin.cpp
index 53921edc616a86929039bb89566cecba6002bf14..ab653caf7b9ae4ca1b6558b5f3e5f4ca169464fe 100644 (file)
@@ -128,7 +128,9 @@ bool wxHtmlWindow::LoadPage(const wxString& location)
 {
     wxFSFile *f;
     bool rt_val;
-    wxBusyCursor b;
+
+    SetCursor(*wxHOURGLASS_CURSOR);
+    wxYield();
 
     m_tmpCanDraw = FALSE;
     if (m_HistoryOn && (m_HistoryPos != -1)) { // store scroll position into history item
@@ -158,6 +160,8 @@ bool wxHtmlWindow::LoadPage(const wxString& location)
             m_tmpCanDraw = TRUE;
             Refresh();
             wxMessageBox(err, "Error");
+
+            SetCursor(*wxSTANDARD_CURSOR);
             return FALSE;
         }
 
@@ -209,6 +213,8 @@ bool wxHtmlWindow::LoadPage(const wxString& location)
         m_History.Add(new HtmlHistoryItem(m_OpenedPage, m_OpenedAnchor));
     }
 
+    SetCursor(*wxSTANDARD_CURSOR);
+
     m_tmpCanDraw = TRUE;
     Refresh();
     return rt_val;