Hi,
I’m trying to create a Eto.Forms panel, then putting a viewport (using ViewportControl) inside of this panel so it can display something. I’ve implemented this part of code, it pops up as expected. Then I want to constraint the mouse behavior of my mouse when navigating inside this panel, so the user cannot scroll to zoom in/out, but they just don’t work…except for the screenshot I also tried to let the Eto.Panel.MouseWheel to subscribe a constraint function, but it didn’t get called either.
I stuck here, could anyone experienced this share some insight?
Update: It is because the Viewport Control somewhat overrode the process, once I removed the viewport control from this panel, the mouse interruption works!
But still no solution to the original question yet…
To respond to mouse events in a Viewport, you need to use the Rhino.UI.MouseCallback class. They do not get forwarded to the Eto wrapper control currently.
Thank you for your reply, Curtis!
But I just tried your approach, it responds very well in these native viewports, no response in the ViewportControl panel I created.