[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


https://bugzilla.novell.com/show_bug.cgi?id=418108


           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:
1. 

        ContextMenuStrip change_page_context_menu = new ContextMenuStrip();

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


   change_page_context_menu.Show[Dialog]();

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


2. 


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
background.

I wrote about this in forum.

http://www.nabble.com/forum/ViewPost.jtp?post=19005638

http://www.nabble.com/forum/ViewPost.jtp?post=19006594


-- 
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