B4J Question B4XFloatTextfield Clear event


Licensed User
Longtime User
The text field of a B4BFloatTextfield has three optional buttons accept button, clear button and reveal button. The event for accept button is EnterPressed, for reveal button it is PasswordRevealChanged but there is nothing for clear button.
Upvote 0


Active Member
Licensed User
You are right, there isn't a specific event for the clear button.
The other 2 events you didn't mention are: FocusChanged and TextChanged.
Interesting thing to notice is that the TextChanged event holds a reference "Old" to the text that was in the textfield after the field was cleared.
A call to the public method setText("") clears the textfield or setting the B4XFloatTextField.text property = "" also clears the textfield.
Upvote 0