[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/TextBox.cs
From: |
Heiko Weiss |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/TextBox.cs |
Date: |
Thu, 19 Apr 2007 12:28:12 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnetlib
Changes by: Heiko Weiss <brubbel> 07/04/19 12:28:11
Modified files:
. : ChangeLog
System.Windows.Forms: TextBox.cs
Log message:
fixed showing caret.
Check, if caret is to be shown OnGotFocus too,
since OnEnter might not be exexuted
because OnEnter only gets executed if ActiveControl is set.
This might not be set. So if textbox gets the focus it must
check if the caret is to be shown.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2494&r2=1.2495
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Windows.Forms/TextBox.cs?cvsroot=dotgnu-pnet&r1=1.57&r2=1.58
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2494
retrieving revision 1.2495
diff -u -b -r1.2494 -r1.2495
--- ChangeLog 18 Apr 2007 14:57:21 -0000 1.2494
+++ ChangeLog 19 Apr 2007 12:28:11 -0000 1.2495
@@ -1,3 +1,7 @@
+2007-04-19 Heiko Weiss <address@hidden>
+
+ * System.Windows.Forms/TextBox.cs: fixed showing caret.
+
2007-04-18 Heiko Weiss <address@hidden>
* System.Drawing/Drawing2D/GraphicsPath.cs: fixed closing figure.
Index: System.Windows.Forms/TextBox.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Windows.Forms/TextBox.cs,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -b -r1.57 -r1.58
--- System.Windows.Forms/TextBox.cs 23 Nov 2006 11:05:35 -0000 1.57
+++ System.Windows.Forms/TextBox.cs 19 Apr 2007 12:28:11 -0000 1.58
@@ -562,6 +562,21 @@
return base.IsInputKey(keyData);
}
+ // need to check for caret OnGotFocus too, since OnEnter might not be
exexuted
+ // because OnEnter only gets executed if ActiveControl is set.
+ protected override void OnGotFocus(EventArgs e) {
+ base.OnGotFocus(e);
+ if( this.Focused ) {
+ // reset the caret position
+ CaretSetPosition(caretPosition);
+
+ // Perform the regular focus handling.
+ CaretShow();
+ InvalidateDirty();
+ this.Invalidate();
+ }
+ }
+
// Process when the control receives the focus
protected override void OnEnter(EventArgs e)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/TextBox.cs,
Heiko Weiss <=