[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Class Library (pnetlib)
From: |
Heiko Weiss |
Subject: |
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Class Library (pnetlib) branch, master, updated. 1f6a7ec5b7c66130597dafaaa12f5e977f3deffd |
Date: |
Mon, 19 Jul 2010 06:15:03 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET Class Library (pnetlib)".
The branch, master has been updated
via 1f6a7ec5b7c66130597dafaaa12f5e977f3deffd (commit)
from d30fef558a43698a9fd091fbd3c20b8d8aaa45b6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnetlib.git/commit/?id=1f6a7ec5b7c66130597dafaaa12f5e977f3deffd
commit 1f6a7ec5b7c66130597dafaaa12f5e977f3deffd
Author: Heiko Weiss <address@hidden>
Date: Mon Jul 19 08:14:13 2010 +0200
implemented CharacterCasing
diff --git a/ChangeLog b/ChangeLog
index 143dc04..0278080 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-19 Heiko Weiss <address@hidden>
+
+ * System.Windows.Forms/TextBox.cs: implemented CharacterCasing
+
2010-05-17 Heiko Weiss <address@hidden>
* Xsharp/Display.cs: replaced waiting for x-event endless with waiting
diff --git a/System.Windows.Forms/TextBox.cs b/System.Windows.Forms/TextBox.cs
index a8eb3d4..079805b 100644
--- a/System.Windows.Forms/TextBox.cs
+++ b/System.Windows.Forms/TextBox.cs
@@ -34,7 +34,7 @@ public class TextBox : TextBoxBase
{
private bool acceptsReturn;
private char passwordChar;
- private CharacterCasing characterCasing;
+ private CharacterCasing characterCasing = CharacterCasing.Normal;
private ScrollBars scrollBars;
private HorizontalAlignment textAlign;
@@ -137,7 +137,6 @@ public class TextBox : TextBoxBase
}
}
- [TODO]
// Handle this
// Gets or sets whether the TextBox control modifies the case of
characters as they are typed.
public CharacterCasing CharacterCasing
@@ -385,7 +384,7 @@ public class TextBox : TextBoxBase
}
if( value == null ) value = string.Empty;
-
+
if( value.Length > 0 && value.IndexOfAny( new char [] {
'\n', '\r' } ) >= 0 ) { // check if chars are in use, before use of
StringBuilder (performance)
// Change all text endings of CR or LF into CRLF
@@ -1120,6 +1119,17 @@ public class TextBox : TextBoxBase
// Called to change the text. Sets the update to whats needed to but
doesnt change the selection point or caret
private void SetTextActual( string text)
{
+ switch( this.characterCasing )
+ {
+ case CharacterCasing.Upper :
+ text = text.ToUpper();
+ break;
+
+ case CharacterCasing.Lower :
+ text = text.ToLower();
+ break;
+ }
+
if( !IsHandleCreated ) {
// create handle here to be sure that LayoutInfo will
be set correct.
this.CreateHandle();
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
System.Windows.Forms/TextBox.cs | 16 +++++++++++++---
2 files changed, 17 insertions(+), 3 deletions(-)
hooks/post-receive
--
DotGNU Portable.NET Class Library (pnetlib)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET Class Library (pnetlib) branch, master, updated. 1f6a7ec5b7c66130597dafaaa12f5e977f3deffd,
Heiko Weiss <=
- Prev by Date:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 63e4e9181177164fd8d47bd14db378a57fb3f3cb
- Next by Date:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET branch, master, updated. cf0607068a7948ae7ad36224b0f18117c03c84bd
- Previous by thread:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 63e4e9181177164fd8d47bd14db378a57fb3f3cb
- Next by thread:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET branch, master, updated. cf0607068a7948ae7ad36224b0f18117c03c84bd
- Index(es):