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:



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

DavideV

Active Member
Licensed User
Longtime User
Thanks stevel05, I'm pretty sure I have tried before writing the post. After your answer i tried again and the dots were there
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…