[Mono-bugs] [Bug 391518] New: Panel.BringToFront() Fails
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Fri May 16 14:53:21 EDT 2008
    
    
  
https://bugzilla.novell.com/show_bug.cgi?id=391518
           Summary: Panel.BringToFront() Fails
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: walker_643 at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
Created an attachment (id=216083)
 --> (https://bugzilla.novell.com/attachment.cgi?id=216083)
Test Case
After dynamically adding a Label to the Controls array of a Form, it is no
longer possible to bring a Panel control to the top of the z-order. To
demonstrate, please build the attached test case as a SWF 2.0 project.
When the form is displayed, click the "Run Test" button. A panel will be
displayed. At this point, the panel is at the top of the z-order. This is
correct.
Click the "Go" button. A label is added (dynamically) to the form (the Controls
array). After a second, the Panel will again be displayed, but will *not* be at
the top of the z-order. This is not correct.
You can use the "Done" button to close the panel and the "Run Test" button to
redisplay it repeatedly to satisfy the assertion that the panel will never
again top the z-order.
Examine the code and you will see that each time the panel is displayed,
Focus() and BringToFront() immediately follow. You will also see my comments in
the SetOffendingLabelVisible() procedure that shows the two lines that need
removing in order to make the BringToFront() calls effective.
Happy hunting!
-- 
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