LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
on mouseUp --in field "search"
set location of field "search" to (172,14)
end mouseUp
on keyboardDeactivated
set location of field "search" to (172,160)
end keyboardDeactivated
Unfortunately, this code does not work. Can anyone tell me what will work instead?
on openfield
set the top of the target to 14
end openfield
on closefield -- work only if the content has been changed
set the top of the target to 72
end closefield
on exitfield -- work if the user leaves a field if the content hasn't been changed
set the top of the target to 72
end exitfield
on keyboardDeactived
answer "keyboardDeactived" with "OK"
end keyboardDeactived
on keyboardActived
answer "keyboardActived" with "OK"
end keyboardActived
Your problem is with your spelling...
You have scripted 'on keyboardDeactived' and 'keyboardActived'.... it should be 'keyboardDeactivated' and 'keyboardActivated'
It's that strange 'English' language that has tripped you up...
Thank you, too, Dixie. I had coded my 'on keyboardDeactivated' as an object script attached to the field. I gather from your script that the code needs to be attached to the card instead.