[Mono-bugs] [Bug 657628] New: Setting ScrollBar.Maximum wrongly sets the Value property
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Dec 5 16:37:19 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=657628
https://bugzilla.novell.com/show_bug.cgi?id=657628#c0
Summary: Setting ScrollBar.Maximum wrongly sets the Value
property
Classification: Mono
Product: Mono: Class Libraries
Version: 2.8.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: stifu at free.fr
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=403495)
--> (http://bugzilla.novell.com/attachment.cgi?id=403495)
Test case
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101205
Firefox/4.0b8pre
First off, it's impossible for the user to reach the maximum value of a scroll
bar. This is intended, works as expected with .NET and Mono, and is described
here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.scrollbar.maximum.aspx
To sum things up, the maximum value you can normally reach is Maximum -
LargeChange + 1.
However, with this code:
this.hScrollBar1.Value = 100;
this.vScrollBar1.Value = 100;
this.hScrollBar1.Maximum = 50;
this.vScrollBar1.Maximum = 50;
With .NET, the Value of both scroll bars becomes 50. Not with Mono, though,
which acts as if the value had been set via normal user interaction, making the
value 41 (50 - 10 + 1).
Reproducible: Always
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list