Detect LOSS of 'focus' (SOLVED)

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

Re: Detect LOSS of 'focus' (SOLVED)

Post by Traxgeek » Mon Sep 15, 2014 11:12 am

Hi Simon,

Thanks for the additional help - it was :
[1] I hadn't realised 'focus on nothing' doesn't work on mobile - now I do !!! Thanks. and
[2] TraversalOn/Focussable = true is imperative for this to work - again, now I do !!! Thanks a million.

Where would I be without this forum ? !! :?
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Detect LOSS of 'focus' (SOLVED)

Post by dave.kilroy » Mon Sep 15, 2014 11:30 am

Hi Traxgeek

'focus on nothing' works fine in mobile - what it doesn't do reliably is prevent focus going to particular objects on opening a stack and hence activating the keyboard...

For example, you could have a 'returninfield' handler in a field to dismiss the keyboard if the user hits the return key (including the return key from the on-screen keyboard). Or you could have a 'mouseup' handler on a card with a 'focus on nothing' statement inside it, that would dismiss the keyboard if the user touched/clicked outside the field...
"...this is not the code you are looking for..."

Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

Re: Detect LOSS of 'focus' (SOLVED)

Post by Traxgeek » Mon Sep 15, 2014 2:24 pm

Cheers Dave.

I think I've gotten this one sussed now - thanks to your and Simon's support.
I'm now bashing my head trying to get my data (an sqlite file) created on my desktop whilst creating the initial (desktop) version of my app into my Android App.
I can e-Mail the data out of my mobile app and I can navigate to files created by my mobile app BUT, what I'd like to be able to do is be able to get a file created on the desktop BACK ONTO my mobile app...
I'll raise a topic - see if you gurus have some ideas. It's simple enough on the desktop but whilst I can pull the SD card out of my Android device and put the file I need onto it I can't for the life of me find out how to 'see' / navigate around the SD card or whatever I need to do... the 'problem' as far as i can see at the moment (the light is VERY dim !! ;-) ) is how to 'see' the SD card or...

I feel I've almost learnt enough LC basics to make this fun but I'm not quite there... it's soooo frustrating....

Thanks a mil anyways.
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

Post Reply