Mouse wheel events for SimpleOpenGLControl?

View: New views
2 Messages — Rating Filter:   Alert me  

Mouse wheel events for SimpleOpenGLControl?

by Anders Wallin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using SimpleOpenGLControl and trying to bind some mouse events to it.
Mouse down/up and click seem to work as expected, but I can't seem to catch an event where the eventargs e.Delta would be nonzero (i.e. I would detect that the user has scrolled the mouse wheel)

How is this done?

thanks,

AW


_______________________________________________
Tao-list mailing list
Tao-list@...
http://galactus.ximian.com/mailman/listinfo/tao-list

Re: Mouse wheel events for SimpleOpenGLControl?

by Anders Wallin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think I solved this by manually editing the code that visual studio tells me should not be edited manually :)
Visual studio's event browser has no knowledge of a MouseWheel event, but adding this line seems to work anyhow:
this.GLPanel.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.GLPanel_MouseWheel);

On 7/31/07, Anders Wallin <anders.e.e.wallin@...> wrote:

I am using SimpleOpenGLControl and trying to bind some mouse events to it.
Mouse down/up and click seem to work as expected, but I can't seem to catch an event where the eventargs e.Delta would be nonzero (i.e. I would detect that the user has scrolled the mouse wheel)

How is this done?

thanks,

AW



_______________________________________________
Tao-list mailing list
Tao-list@...
http://galactus.ximian.com/mailman/listinfo/tao-list