Numbers keyboard and screen sliding with keyboard

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!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
omsbsd
Posts: 1
Joined: Thu Apr 26, 2018 2:40 am

Numbers keyboard and screen sliding with keyboard

Post by omsbsd » Thu Apr 26, 2018 2:42 am

Hello
I built a basic math application and I need codes or methods for one of the following:
-How to change the default keyboard of the app/card/field from regular keyboard to numbers.
-When the keyboard appears it covers the field, how can the screen slide with it?

Thank you so much!

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Numbers keyboard and screen sliding with keyboard

Post by Klaus » Thu Apr 26, 2018 2:15 pm

Hi omsbsd,

welcome to the forum! :D

1. Use this command:
...
mobileSetKeyboardType "numeric"
...
2. I don't own a mobile devce nor do I develop for mobile, but I would simply move the field X pixel "upwards" "on openfield", so it is not covered by the keyboard.

Then "on closefield" and "on exitfield" move it back to its original position.


Best

Klaus

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Numbers keyboard and screen sliding with keyboard

Post by jmburnod » Thu Apr 26, 2018 4:15 pm

Hi omsbsd,
What Klaus said and
You also may use keyboardActivated message to set the loc of your field up and "focus on nothing" on exit/close field to close keyboard.
Best regards
Jean-Marc
https://alternatic.ch

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”