Wish B4XFloatTextField - KeyboardType property by code

mcqueccu

Well-Known Member
Licensed User
Longtime User
This is how to set keyboard type to B4XFloattext (YOu can change the type to numbers, decimal, text, etc).
This code is from B4i.(It was from a code sample posted by Erel but i couldn't find that thread now)

B4X:
Dim tf As TextField = edtIncome.TextField
tf.KeyboardType = tf.TYPE_DECIMAL_PAD
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
This is how to set keyboard type to B4XFloattext (YOu can change the type to numbers, decimal, text, etc).
This code is from B4i.(It was from a code sample posted by Erel but i couldn't find that thread now)

B4X:
Dim tf As TextField = edtIncome.TextField
tf.KeyboardType = tf.TYPE_DECIMAL_PAD
Thanks but I needed to be able to set the KeyboardType property of B4XFloatTextField (so for B4A too and the code you posted does not take in account multiline) in my project code.
I modified B4XFloatTextField myself for this purpose but I am forced to give a different name to this View; it is much better that Erel adds it.
 

LucaMs

Expert
Licensed User
Longtime User
great @LucaMs but I don't see the library ..
You don't see it for three reasons:

  1. this is the Wishes thread, not the libraries thread :)
  2. I have not published it...
  3. ...and I would prefer Erel to modify his library, otherwise you would have B4XFloatTextField, which is part of XUI Views, and my lmB4XFloatTextField (however they would not conflict with each other)

If Erel will let me know that he won't add that property then I'll publish it.
 
Top