[Mono-bugs] [Bug 79913][Nor] New - Control: Refresh doesn't invalidate non visible controls

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Nov 12 11:38:50 EST 2006

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 alex.olk at googlemail.com.


--- shadow/79913	2006-11-12 11:38:50.000000000 -0500
+++ shadow/79913.tmp.19319	2006-11-12 11:38:50.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 79913
+Product: Mono: Class Libraries
+Version: 1.0
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: alex.olk at googlemail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Control: Refresh doesn't invalidate non visible controls
+On windows, if a control is not visible and you call control.Refresh () the
+control gets invalidated.
+MWF does nothing, because of the following code in
+Invalidate(System.Drawing.Rectangle rc, bool invalidateChildren):
+if (!IsHandleCreated || !Visible || rc.Width == 0 || rc.Height == 0) {
+	return;
+Attached is a simple test case. Run the test case on win and with mwf.
+Hide the panel with the "Hide/Show Panel" button then press the "Refresh
+Panel!" button.
+On windows, the console output is "Panel got invalidated..." if the panel
+is not visible. No output for mwf.
+If the panel is visible, the behaviour is the same as on windows.

More information about the mono-bugs mailing list