Drag, Scrollable Stripe?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cu3e
Posts: 46
Joined: Mon May 23, 2011 10:03 am

Drag, Scrollable Stripe?

Post by cu3e » Mon Aug 29, 2011 1:46 pm

Hello, anybody know if this is possible with iOS LiveCode?

http://psd.tutsplus.com/tutorials/inter ... -ipad-app/
Please see the video as example what I want to archive

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Drag, Scrollable Stripe?

Post by Mark » Mon Aug 29, 2011 11:41 pm

Hi,

What do you want? Do you want to make an animation with a hand, like in the video? Maybe you just want to be able to scroll objects? Or did I miss something and do you want something completely different?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Drag, Scrollable Stripe?

Post by Jellicle » Tue Aug 30, 2011 2:08 am

If you mean multiple strips of content that can be dragged left and right, and where all of the strips can be dragged up and down, than yes, you can, but you really really don't want to, as there is no way you can make it smooth in LC on iOS.
14" MacBook Pro
Former LiveCode developer.
Now recovering.

cu3e
Posts: 46
Joined: Mon May 23, 2011 10:03 am

Re: Drag, Scrollable Stripe?

Post by cu3e » Tue Aug 30, 2011 8:32 am

Thank you. Maybe with animation Engine to make it smooth?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Drag, Scrollable Stripe?

Post by Mark » Tue Aug 30, 2011 9:05 am

Hi,

Actually, you can make it perfectly smooth in iOS bcause the UIScrollView is smooth by itself.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Drag, Scrollable Stripe?

Post by Jellicle » Tue Aug 30, 2011 12:13 pm

Mark wrote:Hi, Actually, you can make it perfectly smooth in iOS bcause the UIScrollView is smooth by itself.
Have you tried doing what the OP needs done? My experience is that things slow down considerably when you have multiple scrollers, and get especially slow when those scrollers contain multiple graphics and groups.
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Drag, Scrollable Stripe?

Post by Mark » Tue Aug 30, 2011 12:18 pm

Hi,

Yes, I have noticed that those scrollers can slow down. I've made some very good and some bad tests. I've made a scroller for a big photo which works perfectly and a scroller for a tiny text field, which worked very badly until I removed a background picture. I think that the graphics engine of LiveCide for iOS is generally slow, but the scroll views as such work alright.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Drag, Scrollable Stripe?

Post by Jellicle » Wed Aug 31, 2011 12:12 am

I just tried emulating the functionality shown in the video. I made 5 horizontally scrolling native controls, each containing 8 graphic and text groups. "Perfectly smooth"? Absolutely not. The scrollers barely shuffle across the screen on my 1st gen iPad. It's awful. And when I wrapped all the horizontal scrollers in a vertical scroller I couldn't find a way of making that work at all. I didn't try using html in browser controls - that might trim some of the over head, but I'd be surprised if it provided smooth functionality.

Hopefully a future update to the graphics engine will make things like this possible, but it's not workable right now.
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Post Reply