IOS Scroller

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

IOS Scroller

Post by Nakia » Sun Oct 14, 2012 10:13 am

Hi all,

I am looking for a little help on the IOS Scroller Control.

I currently have a STACK which is utilizing a Fld which houses multiple lines of data (number varies)..
I have this set up with a Vertical Scroll bar and have enabled List behavior as I have multiple handlers which are actioned based upon the line that is pressed (click line)

I am at the stage of wanting to convert this into an IOS Control to get rid if the scroll bar but am not having much luck so far.
I would like to keep this fld and just make it hidden and make the IOS control sit over it and pass click line information etc.

does anyone have any example scripts of something like this?

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm
Location: Switzerland

Re: IOS Scroller

Post by gpb01 » Sun Oct 14, 2012 11:18 am

Hi Nakia,
some time ago I had a similar problem and ...
... enclose you will find my solution. Probably is not the best but worked fine for me :)

Please note the stack initialization script, the card script and the control script ...
... if you find how to make better ... let me know ;)

Guglielmo

P.S. : remember, when you add lines, that you have to resize the scrolling region ;)
Attachments
iOS_ScrollField.livecode.zip
(1.99 KiB) Downloaded 281 times

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: IOS Scroller

Post by Dixie » Sun Oct 14, 2012 6:29 pm

Nakia...

Attached a stack that contains a liveCode listField that uses an IOS scroller...

be well

Dixie
Attachments
LCScrolller.livecode.zip
(2.64 KiB) Downloaded 349 times

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: IOS Scroller

Post by jacque » Sun Oct 14, 2012 6:36 pm

Just to clarify, the scroller control is a transparent overlay that manages the scrolling of your field, but it does not replace the field. Think of it as a pane of glass stuck to your field.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: IOS Scroller

Post by Nakia » Sun Oct 14, 2012 9:47 pm

Thanks for everyone help.
Jacque, I think the problem I was having was not understanding
How the scroller worked..

I spent a bit of time going through it last night and was
Able to get it to work..

Thanks again

Post Reply

Return to “iOS Deployment”