Clear numeric keypad

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
davidmills
Posts: 16
Joined: Tue Jan 13, 2015 1:21 am

Clear numeric keypad

Post by davidmills » Thu Mar 26, 2015 10:29 am

I have called the numeric keypad on my card with mobileSetKeyboardType "numeric" to use on four fields and all works fine. Then when I tap the GO button on the same card which gives me the calculated results of the four fields, this numeric keypad is hiding most of my results until I tap an area of the screen to clear it. So how can I script the GO button to remove the numeric keypad before doing the calculations which I presume is an on keydown script before the on mouseup script calculations?
I guess on my searching for the answer using Google Livecode I'm just not using the correct wording.
Thanks
Dave

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

Re: Clear numeric keypad

Post by Klaus » Thu Mar 26, 2015 12:02 pm

Hi Dave,

add this line to your script, that should fix your inconvenience:
...
focus on nothing
...


Best

Klaus

davidmills
Posts: 16
Joined: Tue Jan 13, 2015 1:21 am

Re: Clear numeric keypad

Post by davidmills » Thu Mar 26, 2015 5:42 pm

Thank you Klaus, just the job.
Dave

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Clear numeric keypad

Post by richmond62 » Thu Mar 26, 2015 8:53 pm

Klaus:

"focus on nothing"

I really wish by focussing on nothing (something I seem to be very good at) I could get some work done.

LOL.

Post Reply