little demo tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -191,7 +191,9 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
|
||||
self.x = event.GetX()
|
||||
self.y = event.GetY()
|
||||
self.log.WriteText("x, y = %s\n" % str((self.x, self.y)))
|
||||
print event.GetEventObject()
|
||||
item, flags = self.list.HitTest((self.x, self.y))
|
||||
if flags & wxLIST_HITTEST_ONITEM:
|
||||
self.list.Select(item)
|
||||
event.Skip()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user