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/ListBox.cs


From: Heiko Weiss
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/ListBox.cs
Date: Thu, 21 Jun 2007 11:19:13 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Changes by:     Heiko Weiss <brubbel>   07/06/21 11:19:13

Modified files:
        .              : ChangeLog 
        System.Windows.Forms: ListBox.cs 

Log message:
        Scroll list box and select item, if SelectedIndex was changed.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2505&r2=1.2506
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Windows.Forms/ListBox.cs?cvsroot=dotgnu-pnet&r1=1.19&r2=1.20

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2505
retrieving revision 1.2506
diff -u -b -r1.2505 -r1.2506
--- ChangeLog   17 Jun 2007 20:30:11 -0000      1.2505
+++ ChangeLog   21 Jun 2007 11:19:12 -0000      1.2506
@@ -1,3 +1,8 @@
+2007-06-21  Heiko Weiss <address@hidden>
+
+       * System.Windows.Form/ListBox.cs: Scroll list box and select item, if 
+       SelectedIndex was changed.
+
 2007-06-18  Radek Polak  <address@hidden>
 
        * runtime/System/IO/FileStream.cs: Move position to the last unread byte

Index: System.Windows.Forms/ListBox.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Windows.Forms/ListBox.cs,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- System.Windows.Forms/ListBox.cs     31 Mar 2007 08:12:51 -0000      1.19
+++ System.Windows.Forms/ListBox.cs     21 Jun 2007 11:19:13 -0000      1.20
@@ -895,6 +895,8 @@
                                this.selectedIndices.Clear();
                        if(value != -1)
                                this.selectedIndices.Add(value);
+                       this.FocusedItem = value;
+                       this.EnsureFocusedItemVisible();
                }
        }
 




reply via email to

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