iOS Question [Solved] B4XFloatTextField isn't centering hint

Status
Not open for further replies.

Lori Scott

Member
Licensed User
I am using B4XFloatTextField so that I can use the Accept feature to get the iPhone number keypad to close.

For this view, I selected the option for centered text but the text is still left-justified. A bug? or am I doing something wrong?

you can try with:
Code:
B4XFloatTextField1.TextField.SetTextAlignment("CENTER","CENTER")
Or any combination you need.

This centers the main text but not the hint text. Is there an option like .setHintAlignment? Font size of hint does not match font size of main text either. Can I influence position and font size of the hint in a B4XFloatTExtField?
 
Also tried:
Code:
B4XFloatTextField1.HintFont.Size(B4XFloatTextField1.TextField.Font.Size)
    B4XFloatTextField1.Update

Same error.
 
Upvote 0
You can change the hint sizes with:
Code:
SearchField.LargeLabelTextSize = 14
SearchField.SmallLabelTextSize = 10
SearchField.Update


SearchField is new to me. Please point me to the SearchField documentation or tutorial so I can study the basics of how to use it. What Library do I need? Looking in the forum gives me some idea but not the basics how to use it.
 
Upvote 0
Oh, thank you for clarifying. I am working at the steep end of the learning curve. I don't always interpret things the 'obvious' way.

Yes, that works.
 
Upvote 0
Status
Not open for further replies.
Back
Top