Suspend UIScrollView behavior when new stack opened on top?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

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

Suspend UIScrollView behavior when new stack opened on top?

Post by ctflatt » Sun Apr 17, 2011 11:05 am

I am working on a new project and have hit a snag.

In the main stack I am generating a UIScrollView of clickable text, which opens a new stack on top of the main.

Once the new stack opens, the UIScrollView of the main stack is still active, though not visible. The scrollbars still function (and control) the scrollable content in the main stack. This is not good, as the user could change the location of the scrollable content in the main stack accidentally.

I don't want to close the main stack card to delete the control if I don't have to.

Is there a way to disable/suspend the UIScrollView control of the main stack while there is a new stack open above it?

Many thanks,

Todd

Klaus
Posts: 12204
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Suspend UIScrollView behavior when new stack opened on top?

Post by Klaus » Sun Apr 17, 2011 11:26 am

Hi Todd,

can't you set the "visislbe" property of the UIScrollView to false when opening the new stack?
Maybe that will work for you?


Best

Klaus

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

Re: Suspend UIScrollView behavior when new stack opened on top?

Post by ctflatt » Mon Apr 18, 2011 11:29 pm

Klaus:

Thanks!

I've since gone to a single stack, but will keep that in mind. Forgot that "visible" to false disables the control.

Have a great week.

:Todd

mattrgs
Posts: 37
Joined: Tue May 28, 2013 1:41 pm

Re: Suspend UIScrollView behavior when new stack opened on t

Post by mattrgs » Tue Dec 24, 2013 11:57 pm

Hi
what would be the code to set the scroller to invisible if using the mobilecontrolset scroller?
Thanks
Matthew

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Suspend UIScrollView behavior when new stack opened on t

Post by Simon » Wed Dec 25, 2013 1:40 am

mobileControlSet "tControl", "visible", false

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply

Return to “iOS Deployment”