B4J Question [B4XTable] How to Show Search-Box-Clear Icon When Hover Over Search Box

B4XDev

Member
Licensed User
Currently, if you want to clear the search box of a B4XTable, you have to click inside the box before the "Clear" (x) will appear. Is it possible to make that (x) appear on hover instead?
 

MicroDrie

Well-Known Member
Licensed User
I do not fully understand you. In the B4J IDE 64 bit version 6.80, the B4xTable uses an internal library version 1.22. As soon as you have entered a character in the search bar, an X will appear.

Update:
Or do you mean that if the search box no longer has the focus, you first have to select the search box to make the X button visible again. Therefore you want when you hover the mouse pointer over the search box, the search box is automatically selected?
 
Last edited:
Upvote 0

B4XDev

Member
Licensed User
Or do you mean that if the search box no longer has the focus, you first have to select the search box to make the X button visible again.

Yes, please. Thank you!

Therefore you want when you hover the mouse pointer over the search box, the search box is automatically selected?

I'm not sure it's necessary to automatically select the search box on hover. Just having the X button visible would be convenient. Maybe if the X is clicked, then the search box can get focus.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
The X-delete input search key is showed when the search box has any input character and is hided when the search box lost the focus or has no character any more. This is standard behavior for a B4XFloatTextField which is used for the search box as part of the internal XUI Views library.

Changing the way in which it works therefore does not only have an impact on the behavior of the search box. It seems that the developer of the XUI Views library has deliberately chosen to make the X-delete key disappear when the search box is no longer selected.
 
Upvote 0
Top