]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't need to adjust the position for HitTest any longer
authorRobin Dunn <robin@alldunn.com>
Tue, 29 Jun 2004 18:03:48 +0000 (18:03 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 29 Jun 2004 18:03:48 +0000 (18:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/TreeListCtrl.py

index 6580c07d5af75e29d4be4f78cfe991d6c900f7bb..c41ab3160d72f690b79f361cffe6f0224e6f28b5 100644 (file)
@@ -82,18 +82,11 @@ class TestPanel(wx.Panel):
 
 
     def OnRightUp(self, evt):
-        # Convert the position from being relative to the subwindow to
-        # being relative to the outer treelist window so HitTest will
-        # have the point it is expecting.
         pos = evt.GetPosition()
-        pos = self.tree.GetMainWindow().ClientToScreen(pos)
-        pos = self.tree.ScreenToClient(pos)
         item, flags, col = self.tree.HitTest(pos)
-
         if item:
             print flags, col, self.tree.GetItemText(item, col)
 
-
     def OnSize(self, evt):
         self.tree.SetSize(self.GetSize())