Author: jackson
Date: 2007-04-03 14:53:09 -0400 (Tue, 03 Apr 2007)
New Revision: 75355
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:
- Display the caret after doing a page up/down, we need to
manually display it because a proper CaretMoved event isn't
triggered (this is because of the way the math is done to
determine how far to scroll).
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-03 18:30:46 UTC (rev 75354)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-03 18:53:09 UTC (rev 75355)
@@ -2,6 +2,10 @@
* TextBoxBase.cs: We need to calculate maximums even if this is
not a multiline control, because the maxs are used for scrolling.
+ - Display the caret after doing a page up/down, we need to
+ manually display it because a proper CaretMoved event isn't
+ triggered (this is because of the way the math is done to
+ determine how far to scroll).
2007-04-03 Jonathan Pobst <[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2007-04-03 18:30:46 UTC (rev 75354)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
2007-04-03 18:53:09 UTC (rev 75355)
@@ -1137,6 +1137,7 @@
} else {
document.MoveCaret(CaretDirection.PgUp);
}
+ document.DisplayCaret ();
return true;
}
@@ -1146,6 +1147,7 @@
} else {
document.MoveCaret(CaretDirection.PgDn);
}
+ document.DisplayCaret ();
return true;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches