[Mono-bugs] [Bug 418108] New: ToolStrip background color defaults to white

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 18 14:37:39 EDT 2008


           Summary: ToolStrip background color defaults to white
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: d3ck0r at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development

Description of Problem:

Steps to reproduce the problem:

        ContextMenuStrip change_page_context_menu = new ContextMenuStrip();

                                control_context_menu.Items.Add( new
ToolStripLabel( "Edit", null, false, null ) );


or attach it to ContextMenuStrip of a control and right click on it.


Actual Results:
   Menu shows using a white background.  

Expected Results:
   Menu should show using appropriate background from
ToolStripProfessionalRenderer.  This background should reflect the current
theme settings.  The control itself has BackColor==Color.Control, which is
definatly not Color.White.

How often does this happen? 
   Every time.

Additional Information:
   ToolStripProfessionalRenderer uses SystemColors which has some MonoTODO code
in loading theme colors.

   If the tool strip renderer property is set to System, the background color
does work correctly... 

   I beleive that if the SystemColors structure were fixed, that many other
controls would also begin to work better (TreeViewList, TextControl).

Under windows, the native .NET libraries also use Colors.Control as their

I wrote about this in forum.



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