Page 1 of 1

IOS Scroller

Posted: Sun Oct 14, 2012 10:13 am
by Nakia
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?

Re: IOS Scroller

Posted: Sun Oct 14, 2012 11:18 am
by gpb01
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 ;)

Re: IOS Scroller

Posted: Sun Oct 14, 2012 6:29 pm
by Dixie
Nakia...

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

be well

Dixie

Re: IOS Scroller

Posted: Sun Oct 14, 2012 6:36 pm
by jacque
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.

Re: IOS Scroller

Posted: Sun Oct 14, 2012 9:47 pm
by Nakia
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