[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/ListBox.cs
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/ListBox.cs |
Date: |
Tue, 06 Jun 2006 18:25:39 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnetlib
Changes by: Klaus Treichel <ktreichel> 06/06/06 18:25:39
Modified files:
. : ChangeLog
System.Windows.Forms: ListBox.cs
Log message:
2006-06-06 David Logan <address@hidden>
* System.Windows.Forms/ScrollBar.cs: Add settor for TopIndex.
Fix
SelectedIndex settor so that a value of -1 is accepted. This
fixes Bugs
#16731 and #16733. (Klaus)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2420&r2=1.2421
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Windows.Forms/ListBox.cs?cvsroot=dotgnu-pnet&r1=1.13&r2=1.14
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2420
retrieving revision 1.2421
diff -u -b -r1.2420 -r1.2421
--- ChangeLog 5 Jun 2006 12:14:48 -0000 1.2420
+++ ChangeLog 6 Jun 2006 18:25:38 -0000 1.2421
@@ -1,3 +1,9 @@
+2006-06-06 David Logan <address@hidden>
+
+ * System.Windows.Forms/ScrollBar.cs: Add settor for TopIndex. Fix
+ SelectedIndex settor so that a value of -1 is accepted. This fixes Bugs
+ #16731 and #16733. (Klaus)
+
2006-06-05 Deryk Robosson <address@hidden>
* System.Windows.Forms/VisualStyles/PushButtonState.cs,
Index: System.Windows.Forms/ListBox.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Windows.Forms/ListBox.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- System.Windows.Forms/ListBox.cs 8 Dec 2004 16:30:29 -0000 1.13
+++ System.Windows.Forms/ListBox.cs 6 Jun 2006 18:25:39 -0000 1.14
@@ -879,11 +879,12 @@
IList data = (IList) base.dataSource;
- if(value < 0 || value >= data.Count)
+ if(value < -1 || value >= data.Count)
throw new ArgumentOutOfRangeException(/* TODO
*/);
if(this.selectionMode == SelectionMode.One)
this.selectedIndices.Clear();
+ if(value != -1)
this.selectedIndices.Add(value);
}
}
@@ -1541,6 +1542,12 @@
{
return topIndex;
}
+ set
+ {
+ this.topIndex = value;
+ this.vertScrollbar.Value = this.topIndex;
+ RedrawList();
+ }
}
// How many columns can be displayed.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog System.Windows.Forms/ListBox.cs,
Klaus Treichel <=