Author: jackson
Date: 2006-11-02 10:03:31 -0500 (Thu, 02 Nov 2006)
New Revision: 67273
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
* TextBoxBase.cs: Use client rectangle not bounds for checking
* if
the mouse is in the client rectangle (duh).
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-02 14:46:40 UTC (rev 67272)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-02 15:03:31 UTC (rev 67273)
@@ -1,3 +1,8 @@
+2006-11-02 Jackson Harper <[EMAIL PROTECTED]>
+
+ * TextBoxBase.cs: Use client rectangle not bounds for checking if
+ the mouse is in the client rectangle (duh).
+
2006-11-02 Rolf Bjarne KVinge <[EMAIL PROTECTED]>
* TrackBar.cs: Fixed trackbar jumping around when clicking
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-11-02 14:46:40 UTC (rev 67272)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2006-11-02 15:03:31 UTC (rev 67273)
@@ -1683,8 +1683,7 @@
private void TextBoxBase_MouseMove(object sender,
MouseEventArgs e) {
// FIXME - handle auto-scrolling if mouse is to the
right/left of the window
if (Capture) {
-
- if (!bounds.Contains (e.X, e.Y)) {
+ if (!ClientRectangle.Contains (e.X, e.Y)) {
if (scroll_timer == null) {
scroll_timer = new Timer ();
scroll_timer.Interval = 100;
@@ -1732,22 +1731,22 @@
pt = PointToClient (pt);
- if (pt.X < bounds.Left) {
+ if (pt.X < ClientRectangle.Left) {
document.MoveCaret(CaretDirection.CharBackNoWrap);
document.SetSelectionToCaret(false);
CaretMoved(this, null);
- } else if (pt.X > bounds.Right) {
+ } else if (pt.X > ClientRectangle.Right) {
document.MoveCaret(CaretDirection.CharForwardNoWrap);
document.SetSelectionToCaret(false);
CaretMoved(this, null);
- } else if (pt.Y > bounds.Bottom) {
+ } else if (pt.Y > ClientRectangle.Bottom) {
document.MoveCaret(CaretDirection.LineDown);
document.SetSelectionToCaret(false);
CaretMoved(this, null);
- } else if (pt.Y < bounds.Top) {
+ } else if (pt.Y < ClientRectangle.Top) {
document.MoveCaret(CaretDirection.LineUp);
document.SetSelectionToCaret(false);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches