Scrollwheel in OS X

Karl Becker karl at karlbecker.com
Tue Sep 3 11:54:01 EDT 2002


Thanks Scott, the rawKeyDown handler is working perfectly.  I presume 
that the code (65309 for scroll wheel up, 65308 for scroll wheel down) 
is the same using different mice and different operating systems.
Now to figure out a way to accelerate the scrolling as OS X 10.2 does 
natively...

Karl


On Sunday, September 1, 2002, at 12:15  PM, Scott Raney wrote:

> On Sat, 31 Aug 2002 Karl Becker <karl at karlbecker.com> wrote:
>
>> I love that MetaCard has built-in support for mice scrollwheels to
>> scroll text fields in MetaCard.  That's great (for Mac OS X).
>> However, is there any way I could get that same behavior for a group
>> with scrollbars?
>
> I can't really think of any way this could work automatically.
> Messages are only sent to the objects within a group, or directly to
> the card if the mouse isn't over a control in the group...
>
>> I suspect I could do something with setting up a hidden field maybe...
>> any ideas on how to easily and cleanly get this done?
>
> Use a rawKeyDown handler: there's a different key code for up and down
> wheel and only if these messages aren't handled does the automatic
> behavior kick in.
>   Regards,
>     Scott
>
>> Thanks
>> --
>> Karl Becker, KB Productions
>> http://www.karlbecker.com
>
> ********************************************************
> Scott Raney  raney at metacard.com  http://www.metacard.com
> MetaCard: You know, there's an easier way to do that...
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>
>
--
Karl Becker, KB Productions
http://www.karlbecker.com




More information about the metacard mailing list