git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15140
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
self.MouseToCol(event.GetX())
def OnMotion(self, event):
self.MouseToCol(event.GetX())
def OnMotion(self, event):
+ if event.LeftIsDown() and self.HasCapture():
self.Selecting = true
self.MouseToCursor(event)
self.SelectUpdate()
self.Selecting = true
self.MouseToCursor(event)
self.SelectUpdate()
self.CaptureMouse()
def OnLeftUp(self, event):
self.CaptureMouse()
def OnLeftUp(self, event):
+ if not self.HasCapture():
+ return
+
if self.SelectEnd is None:
self.OnClick()
else:
if self.SelectEnd is None:
self.OnClick()
else: