[wxPython-users] Bitmaps on wx.combo.OwnerDrawnComboBox
Anthony M. Floyd
Anthony.Floyd at convergent.ca
Fri Jun 29 16:14:57 PDT 2007
> > It's Friday afternoon just before a long weekend and my
> brain is mush.
>
> Been there, done that.
Yup, time to go home.
> >
> > Any thoughts? What am I doing wrong?
>
> You need to do your drawing within the rectangle passed to
> OnDrawItem.
> The rest of the dc is clipped. So perhaps this will help:
>
> drawX = rect.x + 48
> drawY = rect.y + 3
>
Of course. Thanks for pointing this out. The sad thing is that I have
two other ODCB's on the same dialog box where I have those offsets.
Time to step away from the keyboard.
Thanks for the help!
Anthony.
More information about the wxpython-users
mailing list