iOS Question [RESOLVED] KeyBoard UPPERCASE

MarcoRome

Expert
Licensed User
Longtime User
Hi All.


it is possible to have the characters of the keyboard, all in uppercase.

In B4A I use:

fle_nome_cognome.EditText.InputType = Bit.Or(fle_nome_cognome.EditText.INPUT_TYPE_TEXT, 4096)

There is something similar in B4i
Thank you
Marco
 

BillMeyer

Well-Known Member
Licensed User
Longtime User
@Marco,

I presume that you need it for an input ?

Look in your designer - if you select your input textfield and then look at your properties tab near the bottom is a property that you can set called: "Autocapitalisation Mode" - you can make your choice there.

Enjoy !!
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Sorry i forgot to write that this is FloatLabeledTextField, but you put me on the right way

B4X:
    'Per Nome e Cognome
    Dim no As NativeObject = fle_nome_cognome
    no.SetField("floatingLabelActiveTextColor", no.ColorToUIColor(Colors.White))
    Dim s As AttributedString
    s.Initialize("Il tuo Nome e Cognome", Font.DEFAULT_BOLD, Colors.White)
    no.RunMethod("setAttributedPlaceholder:", Array(s))
    fle_nome_cognome.Autocapitalize = fle_nome_cognome.AUTOCAPITALIZE_ALL
 
Upvote 0
Top