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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 4 11:17:52 EST 2008


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

User jpobst at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436790#c8


Jonathan Pobst <jpobst at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                                        |RESOLVED
         Resolution|                                                |FIXED




--- Comment #8 from Jonathan Pobst <jpobst at novell.com>  2008-11-04 09:17:51 MST ---
I modified my above test case to override OnDrawItem, and it prints the same as
handling the event on .net.  That is, it gets passed -1.

I think John is right.  You are probably overriding the OnDrawItem on a
ComboBox that is Normal mode.  In this case, the override should never be
called, but on Mono it is.

This is fixed in r117892.

2008-11-04  Jonathan Pobst  <monkey at jpobst.com>

        * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
        mode.  Based on a patch by John Mortlock.
        [Fixes bug #436790]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list