Scrolling on Mac OS X : groups vs fields

Richard Gaskin ambassador at fourthworld.com
Sat Aug 3 10:39:12 EDT 2013


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





More information about the use-livecode mailing list