help with mobileSetKeyboardType
Devin Asay
devin_asay at byu.edu
Thu Sep 26 14:45:35 EDT 2019
Dan,
I believe it’s because setting keyboard type with a mobile native control is done by setting a property with mobileControlSet:
mobileControlCreate "input","_editingField”
mobileControlSet “input”, “keyboardType”, “number”
The mobileSetKeyboardType command works in all other circumstances, including with native LiveCode fields.
Devin
> On Sep 26, 2019, at 12:31 PM, Dan Friedman via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> I am having some trouble with mobileSetKeyboardType. Can anyone tell me why mobileSetKeyboardType works with this:
>
> mobileSetKeyboardType "number"
> ask "Enter a number"
>
> But it doesn’t work with this:
>
> mobileSetKeyboardType "number"
> mobileControlCreate "input","_editingField"
> mobileControlSet "_editingField","rect","20,20,200,60"
> mobileControlSet "_editingField","text","123"
> mobileControlSet "_editingField","visible",true
> mobileControlDo "_editingField","focus"
>
> Doesn't seem to matter what I set mobileSetKeyboardType to or when I set it. It always shows the "normal" keyboard.
>
> Using LiveCode Business 9.5.0, testing on a iPhone X
>
> -Dan
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
Devin Asay
Director
Office of Digital Humanities
Brigham Young University
More information about the use-livecode
mailing list