I think it’s because SyntaxArea adjusts the mouse cursor appearance in the MouseMove
event before raising its own MouseMove
event.
Good morning (o;
In the SyntaxArea demo project I can select a symbol from a demo code.
Let’s say the cursor is on line 10 and I select a symbol that is on line 200, then it jumps to that line. But as soon I use the mouse wheel the view jumps back to line 10.
Not happening when I use the cursor keys.
Any idea?
Think got the IBeam cursor solved, changed following in the MouseMove event handler (commented out “If cursorIsIbeam Then Return”):
// Change the mouse cursor.
If x > LineNumberOffset Then
// Enter field.
//If cursorIsIbeam Then Return
Me.MouseCursor = System.Cursors.IBeam
CursorIsIbeam = True
If MouseOverBlock <> Nil Then
MouseOverBlock = Nil
Redraw
End If
Return
End If