Mouse moves, event fires.
Dim swmouse as mouse = imodelview.getmouse
Addhandler swmouse.mousemovenotify addressof mousemovenotify
Sub mousemovenotify (byval x as long, byval y as long byval wparam as long) as long
Hey the mouse moved. Do something bout it
I'm typing on my phone so check the code.
Wparam is a fun one to dissect. Google mouse wparam and I think lparam
thank you so much ! this'll help a lot
Sub AddMouseHandlers(ByVal ModView As ModelView)
Dim swmouse As Mouse = ModView.GetMouse
AddHandler swmouse.MouseMoveNotify, AddressOf mousemovenotify
Sub RemoveMouseHandlers(ByVal Modview As ModelView)
Dim swmouse As Mouse = Modview.GetMouse
RemoveHandler swmouse.MouseMoveNotify, AddressOf mousemovenotify
Function Mousemovenotify(ByVal x As Integer, ByVal y As Integer, ByVal wparam As Integer) As Integer
'Hey the mouse moved. Do something bout it
it is important to avoid memory leaks that when you no longer need the event, that you call RemoveMouseHandlers.
i always set a local variable to the class that is watching to determine if the event handler has been attached.
if attached then remove the handler upon class dispose
DO NOT LEAVE EVENT HANDLERS OPEN IN CLASSES
man, you're great, thank you