get source control of scrollerDidScroll message

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

get source control of scrollerDidScroll message

Post by SteveTX » Thu Jul 11, 2013 2:07 am

handler scrollerDidScroll occurs for all mobileControl native scrollers. If you have more than one scroller, it does not distinguish. Is there a good way to find out what control the message scrollerDidScroll is referencing?

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: get source control of scrollerDidScroll message

Post by bn » Thu Jul 11, 2013 7:29 am

Steve,

have a look at the dictionary:
mobileControlTarget

Type: function

Syntax:
mobileControlTarget

Objects (or Types): AndroidBrowser,iosBrowser,iosScroller,iosPlayer,iosTextInput

Synonyms:
iphoneControlTarget

Summary:
Fetches the name or id (if no name is set) of the native mobile control that sent the message.

Examples:
get mobileControlTarget()

if mobileControlTarget() is "myControl" then
...
end if
check for the id or name of your scrollers
Kind regards

Bernd

Post Reply