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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 11 04:10:28 EDT 2009


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


           Summary: ForeColor for selected listbox item in ownerdraw mode
                    should be set to highlighted text
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          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: ---


Created an attachment (id=297402)
 --> (http://bugzilla.novell.com/attachment.cgi?id=297402)
test.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.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)

When drawing a listbox 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 if not corrected
manually.

Reproducible: Always

Steps to Reproduce:
1.compile and run attached test.cs
2.left ListBox is draw normally, right ListBox is draw with OwnerDraw
3.see selected line in right ListBox


Expected Results:  
Should look (nearly) like left ListBox.

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