Android Question [SOLVED] - B4XFloatTextField - Hiding hint when the user starts to type.

rleiman

Well-Known Member
Licensed User
Longtime User
Greetings.

With the B4XFloatTextField, can I hide the hint when the user starts to type?

Thanks.
 

mangojack

Expert
Licensed User
Longtime User
one option ...

B4X:
Sub B4XFloatTextField1_TextChanged (Old As String, New As String)
    If New.Trim.Length = 0 Then
       B4XFloatTextField1.mBase.GetView(1).Visible = True
    Else
        B4XFloatTextField1.mBase.GetView(1).Visible = False
    End If       
End Sub
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
= (New.Trim.Length = 0) 'parenthesis are not required
1600693553726.png


Not required but I like it so.
 
Upvote 0
Top