[Mono-bugs] [Bug 572643] New: ForeColor for selected ToolStripComboBox item in ownerdraw mode should be set to highlighted text

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 21 07:23:38 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=572643

http://bugzilla.novell.com/show_bug.cgi?id=572643#c0


           Summary: ForeColor for selected ToolStripComboBox item in
                    ownerdraw mode should be set to highlighted text
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 1.2.0
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andreas.flucke at t-online.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=337962)
 --> (http://bugzilla.novell.com/attachment.cgi?id=337962)
testcase unnamed.cs

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

This is a follow-up to #512115 (you may wish to reopen). When drawing a
ToolStripComboBox with OwnerDraw(Fixed), in the DrawItem event the
DrawItemEventArgs.ForeColor should be set to SystemColors.HighlightText for
selected Items. This leads to nearly unreadable selected text. As this is a
ToolStripControlHost class this applies maybe also to the normal ComboBox
class.


Reproducible: Always

Steps to Reproduce:
1.compile and run attached unnamed.cs
2.click on the left Combo, then on the right.
3.see selected item(s) in the right Combo


Expected Results:  
Should look (nearly) like left Combo

-- 
Configure bugmail: http://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