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: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to