Scrolling on Mac OS X : groups vs fields
Randy Hengst
iowahengst at mac.com
Sat Aug 3 10:54:05 EDT 2013
Got it, thanks.
On Aug 3, 2013, at 9:39 AM, Richard Gaskin <ambassador at fourthworld.com> wrote:
> Randy Hengst wrote:
>
> >> On 02/08/2013 17:32, Mac Bennett wrote:
> >>> This works for me, though you might need to adjust 'tStepsize':
> >>>
> >>> --in group script
> >>>
> >>> on rawKeyDown pKey
> >>> if the short name of me is not in the long name of target then
> >>> pass rawkeydown
> >>> else
> >>> put 45 into tStepSize -- adjust here the stepsize for scrolling
> >>> switch pKey
> >>> case "65309" -- scroll up
> >>> set the vscroll of me to the vscroll of me - tStepSize
> >>> break
> >>> case "65308" -- scroll down
> >>> set the vscroll of me to the vscroll of me + tStepSize
> >>> break
> >>> end switch
> >>> end if
> >>> pass rawkeydown
> >>> end rawKeyDown
> >
> > Any thoughts as to why my arrow keys don't show the rawKey numbers
> > listed here?
> >
> > I'm on a MacBook Pro 13 in… I get
> > 65361 -- left arrow
> > 65362 -- up arrow
> > 65363 -- right arrow
> > 65364 -- down arrow
>
> The values shown in the post you quoted were for the scroll wheel.
>
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> Follow me on Twitter: http://twitter.com/FourthWorldSys
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list