Odd hit testing for wxListCtrl

I have a wxListCtrl with an icon and two columns. I trap left button
down, and call wxListCtrl.HitTest. Everything seems to work normally
if I click on the icon or the first column: I get
wxLIST_HITTEST_ONITEMICON and wxLIST_HITTEST_ONITEMLABEL,
respectively.

If I click in the second column, however, I get a strange mixture of
flags:

wxLIST_HITTEST_ONITEMICON
wxLIST_HITTEST_ABOVE
wxLIST_HITTEST_ONITEMSTATEICON
wxLIST_HITTEST_ONITEMLABEL

Does this make sense at all?

···

--
Tim Lesher <tim@lesher.ws>
http://www.lesher.ws

Tim Lesher wrote:

I have a wxListCtrl with an icon and two columns. I trap left button
down, and call wxListCtrl.HitTest. Everything seems to work normally
if I click on the icon or the first column: I get
wxLIST_HITTEST_ONITEMICON and wxLIST_HITTEST_ONITEMLABEL,
respectively.

If I click in the second column, however, I get a strange mixture of
flags:

wxLIST_HITTEST_ONITEMICON
wxLIST_HITTEST_ABOVE
wxLIST_HITTEST_ONITEMSTATEICON
wxLIST_HITTEST_ONITEMLABEL

Does this make sense at all?

No it doesn't. Please ask about it on the wx-users list and be sure to mention platform and version.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!