Re: Mobile Keyboard

2020-07-06 Thread J. Landman Gay via use-livecode
I got busy and couldn't get back to this for a while. But the proposed fix isn't really any 
different from the one I've used and others have suggested. You still have to send a message on 
preOpen-anything and then do something that deselects the field, whether it's unsetting/setting 
traversalOn, lockText, or focus.


If you have editable fields on several or all cards, then doing the workaround isn't enough on 
preopenstack. You have to include the kludge on every card.


I wish we had a field property that avoided the issue altogether.

On 6/24/20 1:46 PM, panagiotis merakos via use-livecode wrote:

By the way, this has worked for me, tested on iOS:

on preopenstack
do_stuff
send "hideMobileKeyword" to me in 100 millisec
end preopenstack

on hideMobileKeyword
focus on nothing
end hideMobileKeyword

Kind regards,
Panos
--

On Wed, 24 Jun 2020 at 21:40, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


We've all had that problem:


On 6/23/20 6:53 PM, Dan Friedman via use-livecode wrote:

Ralph,

I had this same issue on a project.  The problem is when the card/stack

opens, LiveCode want to activate the first typable field it finds.  If my
old memory is correct, what I did was this:


on preOpenCard
   set the lockText of fld "thisDarnField" to true
end preOpenCard

on openCard
   send "doUnlockTheField" to this card in 1 tick //don't send this

until everything is done loading (you could probably send this in the
preOpenCard too)

end openCard

on doUnlockTheField
   set the lockText of fld "thisDarnField" to false
end doUnlockTheField


Hope that helps and I hope it works!   I hope my cobweb-ridden brain

remembers this correctly!


-Dan



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile Keyboard

2020-06-24 Thread J. Landman Gay via use-livecode
I'll have to try that. The last time I looked, the keyboard popped up briefly after openCard 
finished, and then went back down.


On 6/24/20 1:46 PM, panagiotis merakos via use-livecode wrote:

By the way, this has worked for me, tested on iOS:

on preopenstack
do_stuff
send "hideMobileKeyword" to me in 100 millisec
end preopenstack

on hideMobileKeyword
focus on nothing
end hideMobileKeyword

Kind regards,
Panos
--

On Wed, 24 Jun 2020 at 21:40, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


We've all had that problem:


On 6/23/20 6:53 PM, Dan Friedman via use-livecode wrote:

Ralph,

I had this same issue on a project.  The problem is when the card/stack

opens, LiveCode want to activate the first typable field it finds.  If my
old memory is correct, what I did was this:


on preOpenCard
   set the lockText of fld "thisDarnField" to true
end preOpenCard

on openCard
   send "doUnlockTheField" to this card in 1 tick //don't send this

until everything is done loading (you could probably send this in the
preOpenCard too)

end openCard

on doUnlockTheField
   set the lockText of fld "thisDarnField" to false
end doUnlockTheField


Hope that helps and I hope it works!   I hope my cobweb-ridden brain

remembers this correctly!


-Dan


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via

use-livecode"  wrote:


  I have a card with one focusable input field.
  How can I keep the keyboard from opening until the user taps into

the field?


  I tried putting "focus on nothing"s in various places such as

preopencard

  and opencard with no success?

  I think this has been discussed before. Was there ever a solution

for both

  iOS and Android?

  Thanks

  Ralph DiMola
  IT Director
  Evergreen Information Services
  rdim...@evergreeninfo.net



  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your

subscription preferences:

  http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your

subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile Keyboard

2020-06-24 Thread panagiotis merakos via use-livecode
By the way, this has worked for me, tested on iOS:

on preopenstack
   do_stuff
   send "hideMobileKeyword" to me in 100 millisec
end preopenstack

on hideMobileKeyword
   focus on nothing
end hideMobileKeyword

Kind regards,
Panos
--

On Wed, 24 Jun 2020 at 21:40, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> We've all had that problem:
> 
>
> On 6/23/20 6:53 PM, Dan Friedman via use-livecode wrote:
> > Ralph,
> >
> > I had this same issue on a project.  The problem is when the card/stack
> opens, LiveCode want to activate the first typable field it finds.  If my
> old memory is correct, what I did was this:
> >
> > on preOpenCard
> >   set the lockText of fld "thisDarnField" to true
> > end preOpenCard
> >
> > on openCard
> >   send "doUnlockTheField" to this card in 1 tick //don't send this
> until everything is done loading (you could probably send this in the
> preOpenCard too)
> > end openCard
> >
> > on doUnlockTheField
> >   set the lockText of fld "thisDarnField" to false
> > end doUnlockTheField
> >
> >
> > Hope that helps and I hope it works!   I hope my cobweb-ridden brain
> remembers this correctly!
> >
> > -Dan
> >
> >
> > On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> >
> >  I have a card with one focusable input field.
> >  How can I keep the keyboard from opening until the user taps into
> the field?
> >
> >  I tried putting "focus on nothing"s in various places such as
> preopencard
> >  and opencard with no success?
> >
> >  I think this has been discussed before. Was there ever a solution
> for both
> >  iOS and Android?
> >
> >  Thanks
> >
> >  Ralph DiMola
> >  IT Director
> >  Evergreen Information Services
> >  rdim...@evergreeninfo.net
> >
> >
> >
> >  ___
> >  use-livecode mailing list
> >  use-livecode@lists.runrev.com
> >  Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> >  http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile Keyboard

2020-06-24 Thread J. Landman Gay via use-livecode

We've all had that problem:


On 6/23/20 6:53 PM, Dan Friedman via use-livecode wrote:

Ralph,

I had this same issue on a project.  The problem is when the card/stack opens, 
LiveCode want to activate the first typable field it finds.  If my old memory 
is correct, what I did was this:

on preOpenCard
set the lockText of fld "thisDarnField" to true   
end preOpenCard

on openCard
send "doUnlockTheField" to this card in 1 tick //don't send this until 
everything is done loading (you could probably send this in the preOpenCard too)
end openCard

on doUnlockTheField
set the lockText of fld "thisDarnField" to false
end doUnlockTheField


Hope that helps and I hope it works!   I hope my cobweb-ridden brain remembers 
this correctly!

-Dan


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

 I have a card with one focusable input field.
 How can I keep the keyboard from opening until the user taps into the 
field?

 I tried putting "focus on nothing"s in various places such as preopencard
 and opencard with no success?

 I think this has been discussed before. Was there ever a solution for both
 iOS and Android?

 Thanks

 Ralph DiMola
 IT Director
 Evergreen Information Services
 rdim...@evergreeninfo.net



 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile Keyboard

2020-06-24 Thread Paul Hibbert via use-livecode
Try setting the traversalOn to false rather than using lockText, I seem to 
remember that worked for the last iOS app that I made (quite a while ago now), 
I’m sure it has been discussed here, probably several years ago, so  I’m amazes 
that I remembered it. :-)

I tested the script below in the simulator on a card with 5 fields and it 
worked as expected.

CODE:

local sFields

on preOpenCard
   put the number of fields on this card into sFields
  repeat with x = 1 to sFields
set the traversalOn of fld x to false   
   end repeat
end preOpenCard

on openCard
## openCard stuff here
send "unlockAllFields" to this card in 2 ticks ## Last line of the 
openCard handler
end openCard

on unlockAllFields
   repeat with x = 1 to sFields
  set the traversalOn of fld x to true
   end repeat
end unlockAllFields

END CODE

Best of luck.

Paul



> On Jun 24, 2020, at 08:35, Ralph DiMola via use-livecode 
>  wrote:
> 
> If found that you need to enclose the (set the lockText of fld 
> "thisDarnField" to false) with lock/unlock messages or the keyboard will pop 
> up when the doUnlockTheField handler is run. Probably because I do a lot in 
> the passed open card message path I also needed to send the message in 100 
> ticks.
> 
> Works great now.
> Thanks!
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: Dan Friedman [mailto:d...@clearvisiontech.com] 
> Sent: Tuesday, June 23, 2020 7:54 PM
> To: How to use LiveCode
> Cc: Ralph DiMola
> Subject: Re: Mobile Keyboard
> 
> Ralph,
> 
> I had this same issue on a project.  The problem is when the card/stack 
> opens, LiveCode want to activate the first typable field it finds.  If my old 
> memory is correct, what I did was this:
> 
> on preOpenCard
>   set the lockText of fld "thisDarnField" to true 
> end preOpenCard
> 
> on openCard
>   send "doUnlockTheField" to this card in 1 tick //don't send this until 
> everything is done loading (you could probably send this in the preOpenCard 
> too) end openCard
> 
> on doUnlockTheField
>   set the lockText of fld "thisDarnField" to false end doUnlockTheField
> 
> 
> Hope that helps and I hope it works!   I hope my cobweb-ridden brain 
> remembers this correctly!
> 
> -Dan
> 
> 
> On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> 
>I have a card with one focusable input field.
>How can I keep the keyboard from opening until the user taps into the 
> field?
> 
>I tried putting "focus on nothing"s in various places such as preopencard
>and opencard with no success?
> 
>I think this has been discussed before. Was there ever a solution for both
>iOS and Android?
> 
>Thanks
> 
>Ralph DiMola
>IT Director
>Evergreen Information Services
>rdim...@evergreeninfo.net
> 
> 
> 
>___
>use-livecode mailing list
>use-livecode@lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Mobile Keyboard

2020-06-24 Thread Ralph DiMola via use-livecode
If found that you need to enclose the (set the lockText of fld "thisDarnField" 
to false) with lock/unlock messages or the keyboard will pop up when the 
doUnlockTheField handler is run. Probably because I do a lot in the passed open 
card message path I also needed to send the message in 100 ticks.

Works great now.
Thanks!

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: Dan Friedman [mailto:d...@clearvisiontech.com] 
Sent: Tuesday, June 23, 2020 7:54 PM
To: How to use LiveCode
Cc: Ralph DiMola
Subject: Re: Mobile Keyboard

Ralph,

I had this same issue on a project.  The problem is when the card/stack opens, 
LiveCode want to activate the first typable field it finds.  If my old memory 
is correct, what I did was this:

on preOpenCard
set the lockText of fld "thisDarnField" to true 
end preOpenCard

on openCard
send "doUnlockTheField" to this card in 1 tick //don't send this until 
everything is done loading (you could probably send this in the preOpenCard 
too) end openCard

on doUnlockTheField
set the lockText of fld "thisDarnField" to false end doUnlockTheField


Hope that helps and I hope it works!   I hope my cobweb-ridden brain remembers 
this correctly!

-Dan


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

I have a card with one focusable input field.
How can I keep the keyboard from opening until the user taps into the field?

I tried putting "focus on nothing"s in various places such as preopencard
and opencard with no success?

I think this has been discussed before. Was there ever a solution for both
iOS and Android?

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Mobile Keyboard

2020-06-24 Thread Ralph DiMola via use-livecode
Dan,

Thanks! I was fiddling with the lockText property earlier and it did not seem 
to work. The field does predictive typing. I discovered that keyDown and 
rawKeyDown messages are still sent even if lockText is true. I had to put this 
code at the top of both rawKeyDown and keyDown handlers to prevent data entry 
into the field..

if the lockText of me then 
 pass keyDown/rawKeyDown
end if


Still learning...

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: Dan Friedman [mailto:d...@clearvisiontech.com] 
Sent: Tuesday, June 23, 2020 7:54 PM
To: How to use LiveCode
Cc: Ralph DiMola
Subject: Re: Mobile Keyboard

Ralph,

I had this same issue on a project.  The problem is when the card/stack opens, 
LiveCode want to activate the first typable field it finds.  If my old memory 
is correct, what I did was this:

on preOpenCard
set the lockText of fld "thisDarnField" to true 
end preOpenCard

on openCard
send "doUnlockTheField" to this card in 1 tick //don't send this until 
everything is done loading (you could probably send this in the preOpenCard 
too) end openCard

on doUnlockTheField
set the lockText of fld "thisDarnField" to false end doUnlockTheField


Hope that helps and I hope it works!   I hope my cobweb-ridden brain remembers 
this correctly!

-Dan


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

I have a card with one focusable input field.
How can I keep the keyboard from opening until the user taps into the field?

I tried putting "focus on nothing"s in various places such as preopencard
and opencard with no success?

I think this has been discussed before. Was there ever a solution for both
iOS and Android?

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mobile Keyboard

2020-06-23 Thread Dan Friedman via use-livecode
Ralph,

I had this same issue on a project.  The problem is when the card/stack opens, 
LiveCode want to activate the first typable field it finds.  If my old memory 
is correct, what I did was this:

on preOpenCard
set the lockText of fld "thisDarnField" to true 
end preOpenCard

on openCard
send "doUnlockTheField" to this card in 1 tick //don't send this until 
everything is done loading (you could probably send this in the preOpenCard too)
end openCard

on doUnlockTheField
set the lockText of fld "thisDarnField" to false
end doUnlockTheField


Hope that helps and I hope it works!   I hope my cobweb-ridden brain remembers 
this correctly!

-Dan


On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

I have a card with one focusable input field.
How can I keep the keyboard from opening until the user taps into the field?

I tried putting "focus on nothing"s in various places such as preopencard
and opencard with no success?

I think this has been discussed before. Was there ever a solution for both
iOS and Android?

Thanks

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode