[Mono-bugs] [Bug 436790] New: ComboBox.OnDrawItem() invoked with useless data

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 19 13:43:14 EDT 2008


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


           Summary: ComboBox.OnDrawItem() invoked with useless data
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: awunwpa7 at yahoo.com.ph
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


When I build a child class of the winforms ComboBox class and set 

DrawMode = DrawMode.OwnerDrawFixed

and

DropDownStyle = ComboBoxStyle.DropDownList

the OnDrawItem() method I override gets called with a DrawItemEventArgs where
the Index property is set to -1.

A strange thing is, that in MONO the OnDrawItem() method is invoked as soon as
I set DropDownStyle to ComboBoxStyle.DropDownList. Normally OnDrawItem() is
invoked only if you drop down.

Tested with MONO 2.0 final release. This bug does not occur if you use just the
ComboBoxStyle.DropDown style.


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