Page 1 of 1

mouse wheel?

Posted: Thu Sep 30, 2010 2:56 pm
by dhobbs
Hi,
I have a scrolling list of files (that I read from a folder) that I would like to survey quickly. I know how to make the down arrow and return key move between items in the list. Is there a way to use the mouse wheel to scroll down? Can I catch the mouse wheel change as an event?

Thanks,

--Doug

Re: mouse wheel?

Posted: Thu Sep 30, 2010 2:59 pm
by dhobbs
Hi again,
actually, I don't think I was perfectly clear with my earlier post. I don't want to just scroll - that happen automatically. What I want is to capture the mouse wheel as an event. There are two cases where I would like to do this. In one case, I would like to use the mouse wheel to move up/down a list of items, changing the selected item I move up/down. The second case is to use the mouse wheel to zoom in or out in a graphic window. I can do this using a button, but I'd much rather use the mouse wheel.

Thanks,

--Doug

Re: mouse wheel?

Posted: Thu Sep 30, 2010 3:02 pm
by Klaus
Hi Doug,

a scrolling wheel will generate a "rawKeyDown" message, see the cocs (Rev Dictionary)!
There are also some examples/user comments at the bottom.

Best

Klaus

Re: mouse wheel?

Posted: Fri Oct 01, 2010 9:16 pm
by dhobbs
Thanks for the response.

It turns out to be very simple once I know where to look.

--Doug