[Mono-bugs] [Bug 80900][Nor] New - TrackBar does not move thumb when Value is changed in certain conditions

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 19 15:43:55 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by georgegiolfan at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80900

--- shadow/80900	2007-02-19 15:43:55.000000000 -0500
+++ shadow/80900.tmp.7086	2007-02-19 15:43:55.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 80900
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TrackBar does not move thumb when Value is changed in certain conditions
+
+Steps to reproduce the problem:
+1. Compile and run the following program.
+using System;
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    TrackBar t = new TrackBar();
+    public TestForm() {
+        KeyPreview = true;
+        Controls.Add(t);
+    }
+    protected override void OnKeyDown(KeyEventArgs e) {
+        base.OnKeyDown(e);
+        if (e.KeyCode == Keys.D1)
+            t.Value++;
+    }
+}
+2. Press the left mouse button while the mouse cursor is on the thumb and 
+do not release it.
+3. Move the mouse.
+4. Press the "1" key.
+
+Actual Results:
+The thumb does not change position.
+
+Expected Results:
+The thumb changes position.
+
+How often does this happen? 
+Always (on the SVN version).
+
+Additional Information:
+The code starting with
+			/* Convert thumb position from mouse position to 
+value*/
+in ThemeWin32Classic.DrawTrackBar_* seems to cause this.


More information about the mono-bugs mailing list