B4J Question [SOLVED]Ellipsize a text into a label

DavideV

Active Member
Licensed User
Longtime User
Hello developers,
I would like to know if it's possible ellipsize a text into a label as we do in B4A.
For now I need only the "END" ellipsize with 3 dots.

In the meantime I used a shadow to simulate the text truncation, but it's not really nice:

shadow overlay.png


Thanks in advance!
Davide
 

jimmyF

Active Member
Licensed User
Longtime User
Try this:

B4X:
Label1.Ellipsize="End"

hth
-j
EDIT: Whoops. This is B4J not B4A
 
Last edited:
Upvote 0

stevel05

Expert
Licensed User
Longtime User
In B4j the label automatically has the end ellipsis set, is the label width constrained by the pane it is on or does it overlap it?
 
Upvote 0
Top