self.log.WriteText("x, y = %s\n" % str((x, y)))
item, flags = self.list.HitTest((x, y))
- if flags & wx.LIST_HITTEST_ONITEM:
+ if item != wx.NOT_FOUND and flags & wx.LIST_HITTEST_ONITEM:
self.list.Select(item)
event.Skip()
#---------------------------------------------------------------------------
+# for testing the new native control on wxMac
+#wx.SystemOptions.SetOptionInt("mac.listctrl.always_use_generic", 0)
+
def runTest(frame, nb, log):
win = TestListCtrlPanel(nb, log)
return win