dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/TextBox....


From: Heiko Weiss
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/TextBox....
Date: Mon, 12 Jun 2006 12:23:04 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Changes by:     Heiko Weiss <brubbel>   06/06/12 12:23:04

Modified files:
        .              : ChangeLog 
        System.Windows.Forms: TextBox.cs ScrollBar.cs Splitter.cs 
                              TrackBar.cs 

Log message:
        restore correct cursor if Cursor is set to null.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2424&r2=1.2425
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Windows.Forms/TextBox.cs?cvsroot=dotgnu-pnet&r1=1.52&r2=1.53
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Windows.Forms/ScrollBar.cs?cvsroot=dotgnu-pnet&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Windows.Forms/Splitter.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Windows.Forms/TrackBar.cs?cvsroot=dotgnu-pnet&r1=1.4&r2=1.5

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2424
retrieving revision 1.2425
diff -u -b -r1.2424 -r1.2425
--- ChangeLog   12 Jun 2006 09:19:41 -0000      1.2424
+++ ChangeLog   12 Jun 2006 12:23:03 -0000      1.2425
@@ -1,5 +1,13 @@
 2006-06-12  Heiko Weiss  <address@hidden>
 
+       * System.Windows.Forms/TextBox.cs,
+       System.Windows.Forms/ScrollBar.cs,
+       System.Windows.Forms/Splitter.cs,
+       System.Windows.Forms/TrackBar.cs:
+       restore correct cursor if Cursor is set to null.
+
+2006-06-12  Heiko Weiss  <address@hidden>
+
        * System.Drawing.Xsharp/DrawingWindows.cs,
        Xsharp/Cursor.cs: irgnore pixel format with cursors.
        

Index: System.Windows.Forms/TextBox.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Windows.Forms/TextBox.cs,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -b -r1.52 -r1.53
--- System.Windows.Forms/TextBox.cs     6 Apr 2006 10:06:16 -0000       1.52
+++ System.Windows.Forms/TextBox.cs     12 Jun 2006 12:23:04 -0000      1.53
@@ -121,7 +121,16 @@
                
        }
 
-       // Gets or sets a value indicating whether pressing ENTER in a 
multiline TextBox control creates a new line of text in the control or 
activates the default button for the form.
+       public override Cursor Cursor
+       {
+               set
+               {
+                       if( value == null ) base.Cursor = Cursors.IBeam;
+                       else                base.Cursor = value;
+               }
+       }
+       
+// Gets or sets a value indicating whether pressing ENTER in a multiline 
TextBox control creates a new line of text in the control or activates the 
default button for the form.
        public bool AcceptsReturn
        {
                get

Index: System.Windows.Forms/ScrollBar.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Windows.Forms/ScrollBar.cs,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- System.Windows.Forms/ScrollBar.cs   11 Nov 2005 10:24:13 -0000      1.17
+++ System.Windows.Forms/ScrollBar.cs   12 Jun 2006 12:23:04 -0000      1.18
@@ -68,7 +68,6 @@
                idleTimer.Tick += new EventHandler(idleTimer_Tick);
                idleTimer.Interval = 1;
                BackColor = SystemColors.ScrollBar;
-               Cursor = Cursors.Default;
        }
 
        // Properties

Index: System.Windows.Forms/Splitter.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Windows.Forms/Splitter.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- System.Windows.Forms/Splitter.cs    3 Jan 2004 09:35:35 -0000       1.2
+++ System.Windows.Forms/Splitter.cs    12 Jun 2006 12:23:04 -0000      1.3
@@ -129,6 +129,29 @@
                                        return new Size(3, 3);
                                }
                        }
+       public override Cursor Cursor
+               {
+                       set
+                       {
+                               if( value == null ) {
+                                       switch( Dock ) {
+                                               case DockStyle.Left : case 
DockStyle.Right :
+                                                       base.Cursor = 
Cursors.SizeWE;
+                                                       break;
+                                               case DockStyle.Top : case 
DockStyle.Bottom :
+                                                       base.Cursor = 
Cursors.SizeNS;
+                                                       break;
+                                               default:
+                                                       base.Cursor = value;
+                                                       break;
+                                       }
+                               }
+                               else {
+                                       base.Cursor = value;
+                               }
+                       }
+               }
+                       
        public override DockStyle Dock
                        {
                                get

Index: System.Windows.Forms/TrackBar.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Windows.Forms/TrackBar.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- System.Windows.Forms/TrackBar.cs    18 Nov 2005 10:28:22 -0000      1.4
+++ System.Windows.Forms/TrackBar.cs    12 Jun 2006 12:23:04 -0000      1.5
@@ -83,6 +83,15 @@
                        this.Cursor = Cursors.Hand;
                }
 
+               public override Cursor Cursor
+               {
+                       set
+                       {
+                               if( value == null ) base.Cursor = Cursors.Hand;
+                               else                base.Cursor = value;
+                       }
+               }
+               
                public bool AutoSize
                {
                        get




reply via email to

[Prev in Thread] Current Thread [Next in Thread]