Conditional scrollerDidScroll handling?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Conditional scrollerDidScroll handling?

Post by ctflatt » Sun Jun 03, 2012 3:42 pm

Good morning, everyone!

I am currently working on a project with two scrollers on the same card.

I cannot figure out how to handle the scrollerDidScroll message depending on which scroller is sending the message.

The logic of figuring this out is escaping me...

Can someone enlighten me?

Thanks!

:Todd

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

Re: Conditional scrollerDidScroll handling?

Post by bn » Sun Jun 03, 2012 4:44 pm

Hi Todd,
look at iphoneControlTarget()

from the iOS Release Notes p 60
While in the context of a message that has been dispatched from a native control, you can use the iphoneControlTarget() function to fetch the name (or id, if no name is set) of the control that sent the message.
Kind regards
Bernd

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Conditional scrollerDidScroll handling?

Post by jmburnod » Sun Jun 03, 2012 6:43 pm

Hi Todd,

This stack have one scroller its manage two groups fld on one card
I hope this help

Best regards

Jean-Marc
Attachments
OneScrollerTwoFldsOneCard.livecode.zip
(3.4 KiB) Downloaded 278 times
https://alternatic.ch

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Conditional scrollerDidScroll handling?

Post by ctflatt » Mon Jun 11, 2012 5:33 pm

Thanks! I appreciate the direction.

Have a great day!

:Todd

Post Reply