keyboardActived solved

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

keyboardActived solved

Post by jmburnod » Tue Dec 27, 2011 11:01 am

Hi,

It seem keyboardActived don't work
Someone can confirm it ?

Code: Select all

on keyboardDeactived
   answer "D" with "OK"
end keyboardDeactived

on keyboardActived
  answer "A" with "OK"
end keyboardActived
Bests regards

Jean-Marc
Last edited by jmburnod on Tue Dec 27, 2011 7:24 pm, edited 1 time in total.
https://alternatic.ch

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

Re: keyboardActived

Post by macnomad2 » Tue Dec 27, 2011 11:35 am

Maybe you are french like me ;)
From doc :
"The following messages will be sent to the current card of the default stack when the keyboard is shown or hidden:
keyboardActivated
keyboardDeactivated
Handle these messages to move controls or change the display layout to take account of the restricted screen area that will be available."

Joyeux Noël
Georges

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: keyboardActived

Post by jmburnod » Tue Dec 27, 2011 2:17 pm

Bonjour Georges
Maybe you are french like me
Yes, you're right

i don't understand why

Code: Select all

on keyboardDeactived
  put "keyboardDeactived" into fld 1
end keyboardDeactived

on keyboardActived
  put "keyboardActived" into fld 1
end keyboardActived 
work and

Code: Select all

on keyboardDeactived
   answer "D" with "OK"
end keyboardDeactived

on keyboardActived
  answer "A" with "OK"
end keyboardActived 
don't work

Bonnes fêtes à vous aussi

Jean-Marc
https://alternatic.ch

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

Re: keyboardActived

Post by Klaus » Tue Dec 27, 2011 4:01 pm

Hi Jean-Marc,

check your SPELLING:
keyBoardActived <> keyBoardActivATed


Best

Klaus

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: keyboardActived solved

Post by jmburnod » Tue Dec 27, 2011 11:14 pm

Hi Klaus,

Fortunately, Dixie and you watch what i do :D

Thank one more

Jean-Marc
https://alternatic.ch

Post Reply