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 »

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: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Conditional scrollerDidScroll handling?

Post by bn »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Conditional scrollerDidScroll handling?

Post by jmburnod »

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 356 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 »

Thanks! I appreciate the direction.

Have a great day!

:Todd
Post Reply