iPad Transitions

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jbmiller
Posts: 4
Joined: Tue Feb 28, 2012 5:16 pm

iPad Transitions

Post by jbmiller » Tue Feb 28, 2012 5:19 pm

The iPad has a larger working surface with space for navigation on the left along with detailed information on the right. Is there a way to "push" with a visual effect to only part of the screen? It doesn't seem right that the entire screen moves. Of course I could just do it without the visual effect but I thought I would ask.

Thanks

jbmiller
Posts: 4
Joined: Tue Feb 28, 2012 5:16 pm

Re: iPad Transitions

Post by jbmiller » Tue Feb 28, 2012 6:20 pm

Found my answer: lock a portion of the screen and then unlock with the transition effect.

richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

Re: iPad Transitions

Post by richardmac » Wed Feb 29, 2012 2:56 pm

What was the syntax to lock and unlock part of a screen? I didn't know you could do that.

macnomad2
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Sat Oct 28, 2006 10:04 pm

Re: iPad Transitions

Post by macnomad2 » Wed Feb 29, 2012 5:44 pm

Yes I would like to know also. I tried with "show group" but it is not completely satisfying.
For example if I need to update/swipe several groups on the same screen with fixed objects in the middle.
Some lines of code would be helpful especially for the iPad where you may want to swipe only for parts of the screen

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

Re: iPad Transitions

Post by gpb01 » Wed Feb 29, 2012 8:58 pm

richardmac wrote:What was the syntax to lock and unlock part of a screen? I didn't know you could do that.
Sufficient to look in 'dictionary' ... lock screen [for visual effect] [in rect rect] ...
... Use the (optional) 'rect' parameter of the lock screen command if you want to subsequently unlock the screen using a visual effect in a particular area of the screen. :)

Guglielmo

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: iPad Transitions

Post by Klaus » Wed Feb 29, 2012 10:08 pm

Yep, the dictionary is not really that bad as they say... 8)

jbmiller
Posts: 4
Joined: Tue Feb 28, 2012 5:16 pm

Re: iPad Transitions

Post by jbmiller » Thu Mar 01, 2012 10:02 pm

I have a navigation bar at the top and a segmented control right below it spanning the width. I just wanted to transition the rest of the screen.
This code leaves the navigation bar and segmented control in place while the sweep across is visible.

on mouseup
lock screen for visual effect in rect 0,123,1024,768
go to next card
unlock screen with visual effect push right very fast
end mouseup

richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

Re: iPad Transitions

Post by richardmac » Fri Mar 02, 2012 12:21 am

gpb01 wrote:
richardmac wrote:What was the syntax to lock and unlock part of a screen? I didn't know you could do that.
Sufficient to look in 'dictionary' ... lock screen [for visual effect] [in rect rect] ...
... Use the (optional) 'rect' parameter of the lock screen command if you want to subsequently unlock the screen using a visual effect in a particular area of the screen. :)

Guglielmo
I thought since he'd just figured it out he wouldn't mind sharing his syntax. Which he did. I am aware of the Dictionary.

Post Reply