Field Animation

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
itay1023
Posts: 68
Joined: Fri Sep 28, 2012 1:44 pm

Field Animation

Post by itay1023 » Sun Dec 01, 2013 2:00 pm

Hi all,
I would like to make in my app a field that when i click on it, it moves the field to another location on the screen and opens the keyboard. I want the space around the field will be white (Transparent).
How can i do it?

Best reagrds,
Itay

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

Re: Field Animation

Post by Mark » Sun Dec 01, 2013 3:51 pm

Hi Itay,

The easiest way to do this is to have two cards. One card with the default lay-out of your app and another card with the field at the top. The field on the first card would have its locktext set to true and contain the following script:

Code: Select all

on mouseUp
  lock screen for visual effect
  go cd 2
  unlock screen with visual effect dissolve
end mouseUp
The second card would contain this script:

Code: Select all

on keyboardDeactivated
  go back
end keyboardDeactivated
on closeCard
  put fld 1 into fld 1 of cd 1
end closeCard
and you might want to add a button with

Code: Select all

on mouseUp
  go back
end mouseUp
All very simple.

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

Post Reply