No scroll wheel (newbie stuff)?

J. Landman Gay jacque at hyperactivesw.com
Tue Jan 28 13:50:01 EST 2003


"Ken Norris (dialup)" <pixelbird at interisland.net> wrote:

> This is corn-fusin'. In the first sentence you said:
> ----------
> 
>>Correction: it's most assuredly *not* part of Mac OS and there isn't
>>even any API support for it.
> 
> ---------- 
> In the next paragraph you said:
> ----------
> 
>>Mouse wheels *do* work on Win32, MacOS, and Linux systems because
>>there is OS API support for this hardware feature on these platforms.
> 
> ----------
> One must be true and the other not. Which is which?

It was a typo. The last sentence should be "Mouse wheels *do* work on 
Win32, MacOS X, and Linux..."

Scroll wheel support works fine for me in OS X and is built into the 
MetaCard engine as of (I think) version 2.4.3. It does not work in Mac 
OS 8/9. However, I think you can add the capability yourself with a 
script. You'll need to trap rawKeyDown, check to see if the mousecontrol 
is a field, and if so, set its scroll appropriately. The keycode for 
scrolling up is 65309, for scrolling down it is 65308.

This won't work if no keycodes are sent when the wheel is scrolled 
(which someone reported earlier) but I am pretty sure I had it working 
in OS 9. You'll have to do some tests.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list