ListCtrl, HitTest, & icon
Vadim Zeitlin
vadim at wxwindows.org
Fri Sep 1 03:11:16 PDT 2006
On Thu, 31 Aug 2006 20:15:13 -0700 (PDT) Gary Jefferson <garyjefferson123 at yahoo.com> wrote:
GJ> Vadim Zeitlin wrote:
GJ> > Using HitTest() with the coordinates from the last
GJ> > LEFT_UP event should work (but I didn't test it).
GJ>
GJ> Yeah, I was hoping that would work, but binding
GJ> EVT_LEFT_UP doesn't seem to have any effect -- the
GJ> registered method never gets called.
I think I see what's going on... You use a Unix version of wx, don't you?
There a non-native wxListCtrl version is used and it's composed of several
windows, so the clicks don't happen in the right one. This is a real
problem but I don't see how to fix it right now unfortunately otherwise
than by Connect()ing event handlers to wxGenericListCtrl::m_mainWindow but
this is, of course, very ugly.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list