[wxPython] CaptureMouse Problem

I need it to move to an offset of mouse position - window position so that when they click on the button it doesnt jump the mouse off the button there for stoping the move.

···

----- Original Message -----

From: Niki Spahiev

Sent: Tuesday, January 15, 2002 7:37 AM

To: wxpython-users@lists.wxwindows.org

Subject: Re: [wxPython] CaptureMouse Problem

try this

         elif event.Dragging():
             print 'dragging'
             self.winPosition = self.GetPosition()
             self.mousePosition = wxGetMousePosition()
             self.winPosition[0] = self.mousePosition[0]
             self.winPosition[1] = self.mousePosition[1]
             print 'moving'
             self.Move(winPosition)
             print 'moved'

Niki Spahiev


wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users


Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com