iOS Question B4XFloatTextField hint text problem

davemorris

Active Member
Licensed User
Longtime User
Hi, Guys
I am having a problem with the Hint text associated with the B4XFloatTextField view. If I specify a radius (say 15dip) for the Boarder properties, then part of the Hint text is hidden by the radius when you start entering characters (obviously, with no radius it is OK).

I have tried to pad the Hint text with spaces but once you try to start entering characters the Hint text moves to the top left corner and again it is partly hidden. Perhaps there is a better method for padding the Hint text?

Kind regards
Dave
 

Semen Matusovskiy

Well-Known Member
Licensed User
Like this ?
Simulator Screen Shot - iPhone 11 Pro Max - 2020-07-24 at 23.06.13.png
 

Attachments

  • test.zip
    169.4 KB · Views: 173
Last edited:
Upvote 0

davemorris

Active Member
Licensed User
Longtime User
Hi
I have had a look at your code and it does work, however i have found another solution simply insert the code

B4X:
B4XFloatTextField1.HintLabelSmallOffsetX = 10Dip ' Set to enough to avoid it covered by the Radius corner (ideally based on the radius value)

regards
Dave
 
Upvote 0
Top