Override the MouseMove Event?


#1

Hi,
is it possible to see an example how to override the MouseMovement Event in Rhino Common?
At the same time, how can we get the mouse coordinates written in the screen (I think it is the woldpoint)?
With RhinoCommon C#


(Dale Fugier) #2

Hi @Markus_Erhardt,

Why do you need to do this? What exactly are you trying to do?

Thanks,

– Dale


#3

Hi Dale, I would like to take the coordinates from the mouse and look if it is in contact with an object or so… It is an implementation like a game,


(Dale Fugier) #4

Hi @Markus_Erhardt,

The SDK does not provide any quick mouse-over object highlighing or lookup. You might be able to create a PickContext object and then pass it to ObjectTable.PickObjects. This would at least tell you what the mouse point hit.

– Dale


#5

This is exactly what I have done :slight_smile: