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
-
+// NOTE: The following option is set in _settings.i
+// # Until the new native control for wxMac is up to par, still use the generic one.
+// SystemOptions.SetOptionInt("mac.listctrl.always_use_generic", 1)
MustHaveApp(wxPyListCtrl);
+%pythoncode {
+ %# Until the new native control for wxMac is up to par, still use the generic one.
+ SystemOptions.SetOptionInt("mac.listctrl.always_use_generic", 1)
+}
+
+
//---------------------------------------------------------------------------