Hello API Support,
I have an issue with Mouse Events:
After I register for the mouse events, I started getting all the mouse events which is correct.
After this, click on the left button and release. Now, if I check the following event by moving the mouse,
STDMETHODIMP CNEMouseEventHandler::MouseEvents_OnMouseMove (MouseButtonEnum Button, ShiftStateEnum ShiftKeys, Point *pModelPosition, Point2d *pViewPosition, View *pView)
I get the Button = kLeftMouseButton.
Why do I get this behavior even though I released Left Mouse Button.
I expect in this case the Button = kNoneMouseButton which is the default case.
Please let me know If I am wrong.
Regards
Sekhar
Hi Sekhar,
I created a simple VBA project to test, printing the mouse type MouseButtonEnum of mouse down. mouse up and mouse move. Next I performed the operation to click left mouse, release it and move the mouse. OnMouseMove returns kNoneMouseButton after that.
My test project is attached. I may probably not get the exact scenario if yours. Could you share a small, complete demo project for investigation?
My test version is 2014.
Hi Xiaodong Liang ,
Can you also add SelectEvents and try.
In my case, I have added both.
Set oSE = oIE.SelectEvents
oSE.Enabled = True
Regards
Sekhar
Hi Sekhar,
I added it (attached the updated version). It still works well to me. The following is the dumping info.I doubt there is some special within your workflow. It will be hard to diagnose without a sample. OR could you modify my VBA code till the problem reproduces?
move 0
move 0
move 0
down 1
OnSelect
up 1
click 1
move 0
OnPreSelect
OnPreSelect
move 0
OnPreSelect
OnPreSelect
move 0
OnPreSelect
move 0
OnPreSelect
move 0
move 0
move 0
move 0