]> git.saurik.com Git - wxWidgets.git/commitdiff
Switch back to not using wxPopupWindow since wxMSW's version can't
authorRobin Dunn <robin@alldunn.com>
Thu, 6 Jun 2002 18:36:03 +0000 (18:36 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 6 Jun 2002 18:36:03 +0000 (18:36 +0000)
handle it...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/stc/PlatWX.cpp
contrib/src/stc/ScintillaWX.cpp
src/stc/PlatWX.cpp
src/stc/ScintillaWX.cpp

index 712c3b818fdba7dfbfd5cfd311ed86e3f5e89abe..35d5fc08772f01b96a2d80073503321ad30f7e3c 100644 (file)
@@ -701,8 +701,8 @@ END_EVENT_TABLE()
 
 
 
-// #undef  wxSTC_USE_POPUP
-// #define wxSTC_USE_POPUP 0
+#undef  wxSTC_USE_POPUP
+#define wxSTC_USE_POPUP 0  // wxPopupWindow just doesn't work well in this case...
 
 // A window to place the listbox upon.  If wxPopupWindow is supported then
 // that will be used so the listbox can extend beyond the client area of the
index 2cc5c6d876175d8511d4425c420d2af087f7cc19..5e3d95b65a799ce0b8155fb27bbc3d0d9ff39a7c 100644 (file)
@@ -110,7 +110,7 @@ public:
             CaptureMouse();
         }
         else {
-            ReleaseMouse();
+            if (HasCapture()) ReleaseMouse();
         }
         return retval;
     }
index 712c3b818fdba7dfbfd5cfd311ed86e3f5e89abe..35d5fc08772f01b96a2d80073503321ad30f7e3c 100644 (file)
@@ -701,8 +701,8 @@ END_EVENT_TABLE()
 
 
 
-// #undef  wxSTC_USE_POPUP
-// #define wxSTC_USE_POPUP 0
+#undef  wxSTC_USE_POPUP
+#define wxSTC_USE_POPUP 0  // wxPopupWindow just doesn't work well in this case...
 
 // A window to place the listbox upon.  If wxPopupWindow is supported then
 // that will be used so the listbox can extend beyond the client area of the
index 2cc5c6d876175d8511d4425c420d2af087f7cc19..5e3d95b65a799ce0b8155fb27bbc3d0d9ff39a7c 100644 (file)
@@ -110,7 +110,7 @@ public:
             CaptureMouse();
         }
         else {
-            ReleaseMouse();
+            if (HasCapture()) ReleaseMouse();
         }
         return retval;
     }