Page 1 of 1

get source control of scrollerDidScroll message

Posted: Thu Jul 11, 2013 2:07 am
by SteveTX
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?

Re: get source control of scrollerDidScroll message

Posted: Thu Jul 11, 2013 7:29 am
by bn
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