mouse wheel?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dhobbs
Posts: 24
Joined: Tue Dec 15, 2009 6:25 pm

mouse wheel?

Post by dhobbs » Thu Sep 30, 2010 2:56 pm

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

dhobbs
Posts: 24
Joined: Tue Dec 15, 2009 6:25 pm

Re: mouse wheel?

Post by dhobbs » Thu Sep 30, 2010 2:59 pm

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: mouse wheel?

Post by Klaus » Thu Sep 30, 2010 3:02 pm

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

dhobbs
Posts: 24
Joined: Tue Dec 15, 2009 6:25 pm

Re: mouse wheel?

Post by dhobbs » Fri Oct 01, 2010 9:16 pm

Thanks for the response.

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

--Doug

Post Reply