]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/fl/panedrawpl.cpp
More Clear -> ClearBackground
[wxWidgets.git] / contrib / src / fl / panedrawpl.cpp
index b5b06d3880ebb25c20d1a7004e2381e53872566b..214ffa148f46874598463dac8d1956cf4382081c 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 )
         {
@@ -573,10 +591,14 @@ void cbPaneDrawPlugin::OnSizeBarWindow( cbSizeBarWndEvent& event )
 
         // FIXME:: +/- 1s
 
+        int nNewHeight = bounds.height - 2 - bar.mDimInfo.mVertGap *2;
+        if(nNewHeight < 0)
+           nNewHeight = 0;
+
         bar.mpBarWnd->wxWindow::SetSize( bounds.x      + 1 + bar.mDimInfo.mHorizGap,     
                                          bounds.y      + 1 + bar.mDimInfo.mVertGap,
                                          bounds.width  - 2 - bar.mDimInfo.mHorizGap*2,
-                                         bounds.height - 2 - bar.mDimInfo.mVertGap *2 , 
+                                         nNewHeight,
                                          0 
                                        );