scrollerDidScroll

BNig niggemann at uni-wh.de
Wed Sep 7 14:52:36 EDT 2011


Hi Mark,

I got 2 scrollers to work on one card. It worked very well. One was
vertically and one was a horizontally.

To find out who has send the message use the  iphoneControlTarget() function

try something like this:

on scrollerDidScroll pOffsetX, pOffsetY
   lock screen
   local tWhoCalled
   put iphoneControlTarget() into tWhoCalled
   if tWhoCalled is sScrollerID then
      --set the hScroll of group "BigGroup" to pOffsetX
      set the vScroll of group "BigGroup" to pOffsetY
   end if
   
   if tWhoCalled is sScrolleridT then
      set the hScroll of group "ThumbsGroup" to pOffsetX
      --set the vScroll of group "ThumbsGroup" to pOffsetY
   end if
   unlock screen
   
   --put pOffsetX, pOffsetY into field "Offsets"
end scrollerDidScroll

Kind regards

Bernd

--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/scrollerDidScroll-tp3796617p3796940.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list