[Mono-bugs] [Bug 80638][Nor] New - ScrollableControl should not have a size grip when it doesn't make sense to
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jan 26 14:17:20 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=80638
--- shadow/80638 2007-01-26 14:17:20.000000000 -0500
+++ shadow/80638.tmp.25644 2007-01-26 14:17:20.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 80638
+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: ScrollableControl should not have a size grip when it doesn't make sense to
+
+Description of Problem:
+Controls with scrolling activated seem to always display a size grip.
+
+Steps to reproduce the problem:
+1. Compile and run the following program.
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ public TestForm() {
+ ScrollableControl c = new ScrollableControl();
+ c.AutoScroll = true;
+ c.AutoScrollMinSize = new Size(300, 300);
+ c.Size = new Size(200, 200);
+ Controls.Add(c);
+ }
+}
+2. On MWF notice how the size grip is always displayed. On MS SWF (I
+tested this on Windows XP, but I think I have seen it on older versions
+too) try to use the corner of the control as a size grip. It doesn't work.
+Now resize the form so that its client size is equal to the size of the
+control. The corner now works. Depending on how I move things, the corner
+is painted with the window background color, traces of things that were on
+top of it remain visible, or a size grip is displayed.
+
+Actual Results:
+The size grip is always displayed.
+
+Expected Results:
+The size grip is displayed only when the corner of the ScrollableControl
+is close (I don't know the exact behavior) to the corner of the window.
+Proper painting is not necessary.
+
+How often does this happen?
+Always (in the SVN version).
+
+Additional Information:
+1. I really don't want MWF to match the painting behavior, I'm just
+describing what happens on Windows.
+2. Does anybody know how to work around it on MS SWF?
More information about the mono-bugs
mailing list