Apparently wxPopupWindow position is not screen relative any longer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
72d3f3166a
commit
122070e2a7
@ -57,7 +57,7 @@ class TestPopup(wx.PopupWindow):
|
||||
|
||||
def OnMouseLeftDown(self, evt):
|
||||
self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
|
||||
self.wPos = self.GetPosition()
|
||||
self.wPos = self.ClientToScreen((0,0))
|
||||
self.CaptureMouse()
|
||||
|
||||
def OnMouseMotion(self, evt):
|
||||
|
Loading…
Reference in New Issue
Block a user