B4J Question Displaying Tooltip when TextField is Disabled

cklester

Well-Known Member
Licensed User
I have a TextField that displays a file path. The path can be longer than the TextField, so I'd like to provide a Tooltip so the user can see the whole thing.

The TextField does not accept manual input, and is instead set when the user selects a file, so the TextField is disabled. Unfortunately, disabled TextFields do not display the Tooltip.

Is there a better way to display a file path to the user without using a TextField, or is there a way to enable the Tooltip to display even if the TextField is disabled?

I don't care either way.

I will try using a label, but I wonder if I'll run into the same issue of not being able to display the entire file path, counting on a Tooltip to allow that for the user.
 

cklester

Well-Known Member
Licensed User
I'm using a label, which has the added benefit of adding a "..." at the end if the field isn't wide enough to display the entire text. NOICE!

(I still think disabled TextFields should display a tooltip. Just because I don't want you modifying the text doesn't mean I don't want to give you a tip. :) )
 
Upvote 0
Top