Anyone know what happened to RichTextCtrl's hittest in 2.9?
def OnMouseMotion(self,event):
result = self.HitTest(event.GetPosition())
col, row = self.PositionToXY(pos)
result is now returning an int of 10 instead of the ( hittest_result,
pos )
Also I believe HitTestXY is supposed to directly give me a col and row
but it seems to be broken. I don't know how to track down what
changed in the source do I need to be looking at the C code?
I don't know the details, but I know that replacing HitTest() with
HitTextPos() worked for me.
David
···
On Sat, 2011-10-01 at 11:12 -0700, Mark wrote:
Anyone know what happened to RichTextCtrl's hittest in 2.9?
def OnMouseMotion(self,event):
result = self.HitTest(event.GetPosition())
col, row = self.PositionToXY(pos)
result is now returning an int of 10 instead of the ( hittest_result,
pos )
Also I believe HitTestXY is supposed to directly give me a col and row
but it seems to be broken. I don't know how to track down what
changed in the source do I need to be looking at the C code?
> result is now returning an int of 10 instead of the ( hittest_result,
> pos )
> Also I believe HitTestXY is supposed to directly give me a col and row
> but it seems to be broken. I don't know how to track down what
> changed in the source do I need to be looking at the C code?
> --
> To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
> or visithttp://groups.google.com/group/wxPython-users?hl=en