[Mono-bugs] [Bug 78737][Maj] Changed - Form.BringToFront not working

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 20 15:26:53 EDT 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.

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

--- shadow/78737	2006-06-30 07:43:30.000000000 -0400
+++ shadow/78737.tmp.32534	2006-07-20 15:26:53.000000000 -0400
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.1
 OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: Windows.Forms
 AssignedTo: peter at novonyx.com                            
 ReportedBy: kuba.brecka at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -77,6 +77,21 @@
         Global.F1.BringToFront();
     }
 }
 
 When I run this code on MS.NET Framework, clicking the buttons correctly
 switches the forms. If I run it on Mono BringToFront has no effect.
+
+------- Additional Comments From alex.olk at googlemail.com  2006-07-20 15:26 -------
+Some comments:
+
+The first problem is that Control.BringToFront only updates the zorder
+if parent != null. In the example above none of the forms have a
+parent "control".
+
+So if parent == null it should call the driver with:
+XplatUI.SetZOrder(Handle, IntPtr.Zero, true, false);
+
+The second problem (X only) seems to be that XRaiseWindow only works
+when the WM_CLIENT_LEADER property is set correctly.
+See http://tronche.com/gui/x/icccm/sec-5.html#s-5.1
+(Correct me if I'm wrong here)


More information about the mono-bugs mailing list