]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't set a normal cursor for the frame, set the NULL cursor, else
authorJulian Smart <julian@anthemion.co.uk>
Thu, 4 Apr 2002 21:05:14 +0000 (21:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 4 Apr 2002 21:05:14 +0000 (21:05 +0000)
text controls (for example) can get the wrong cursor.

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

contrib/src/fl/bardragpl.cpp
contrib/src/fl/panedrawpl.cpp
contrib/src/fl/rowlayoutpl.cpp

index 83ac65f3959c1f8fbd2a3fd2ed293e847085ce83..50ee1a43afd14ebc789440b116173129f95d81d3 100644 (file)
@@ -651,9 +651,7 @@ void cbBarDragPlugin::OnMouseMove( cbMotionEvent& event )
                else
                        mpCurCursor = mpLayout->mpNECursor;
        }
-
        if ( pPrevCurs != mpCurCursor )
-
                mpLayout->GetParentFrame().SetCursor( *mpCurCursor );
 }
 
@@ -695,7 +693,13 @@ void cbBarDragPlugin::OnLButtonUp( cbLeftUpEvent& event )
        
                mHintRect.width = -1;
 
-               mpLayout->GetParentFrame().SetCursor( *mpLayout->mpNormalCursor );
+        // In Windows, at least, the frame needs to have a null cursor
+        // else child windows (such as text windows) inherit the cursor
+#if 1
+        mpLayout->GetParentFrame().SetCursor( wxNullCursor );
+#else
+        mpLayout->GetParentFrame().SetCursor( *mpLayout->mpNormalCursor );
+#endif
 
                mpLayout->ReleaseEventsFromPane( event.mpPane );
                mpLayout->ReleaseEventsFromPlugin( this );
index b5b06d3880ebb25c20d1a7004e2381e53872566b..cc3625ffc182c898985b8c5608fa5fc015f7172b 100644 (file)
@@ -279,7 +279,13 @@ void cbPaneDrawPlugin::OnMouseMove( cbMotionEvent& event )
 
                     mBarContentHitted = TRUE;
 
+                    // In Windows, at least, the frame needs to have a null cursor
+                    // else child windows (such as text windows) inherit the cursor
+#if 1
+                    mpLayout->GetParentFrame().SetCursor( wxNullCursor );
+#else
                     mpLayout->GetParentFrame().SetCursor( *mpLayout->mpNormalCursor );
+#endif
                 }
 
                 // TBD:: fire something like "mouse-over-bar" event
@@ -344,7 +350,13 @@ void cbPaneDrawPlugin::OnMouseMove( cbMotionEvent& event )
             mpLayout->ReleaseEventsFromPane( event.mpPane );
             mpLayout->ReleaseEventsFromPlugin( this );
 
+            // In Windows, at least, the frame needs to have a null cursor
+            // else child windows (such as text windows) inherit the cursor
+#if 1
+            mpLayout->GetParentFrame().SetCursor( wxNullCursor );
+#else
             mpLayout->GetParentFrame().SetCursor( *mpLayout->mpNormalCursor );
+#endif
 
             mResizeCursorOn = FALSE;
         }
@@ -499,7 +511,13 @@ void cbPaneDrawPlugin::OnLButtonUp( cbLeftUpEvent& event )
         mpLayout->ReleaseEventsFromPane( event.mpPane );
         mpLayout->ReleaseEventsFromPlugin( this );
 
+        // In Windows, at least, the frame needs to have a null cursor
+        // else child windows (such as text windows) inherit the cursor
+#if 1
+        mpLayout->GetParentFrame().SetCursor( wxNullCursor );
+#else
         mpLayout->GetParentFrame().SetCursor( *mpLayout->mpNormalCursor );
+#endif
 
         if ( mRowHandleHitted )
         {
index 034284c6c456dc38557a87edb7ea95be5a910907..a1dd955c8ce058609905e0f016c9d4abcf6b1887 100644 (file)
@@ -1035,6 +1035,7 @@ void cbRowLayoutPlugin::OnLayoutRows( cbLayoutRowsEvent& event )
     for ( i = 0; i != mpPane->GetRowList().Count(); ++i )
     {
         cbRowInfo& row = *mpPane->GetRowList()[ i ];
+        //mpPane->CalcLengthRatios(& row);
 
         // setup "has-handle" flags for rows, which depend on the existance 
         // of not-fixed bars in the row