B4J Question My text is too long for the label.

zed

Well-Known Member
Licensed User
My text is too long for the label. It does not matter.
The problem is like this abcdefgh....
I wish it was like that ...ghijklmnop.
An idea?
 
Solution
I found Ellipsize in B4A but not in B4J
opss... I thought I was reading B4A.

Use CSS.
B4X:
-fx-text-overrun: leading-ellipsis;
1698700867855.png

aeric

Expert
Licensed User
Longtime User
Try change Ellipsize to START.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
1698699438852.png

Also make sure Single Line is checked.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I found Ellipsize in B4A but not in B4J
opss... I thought I was reading B4A.

Use CSS.
B4X:
-fx-text-overrun: leading-ellipsis;
1698700867855.png
 
  • Like
Reactions: zed
Upvote 1
Solution

Cableguy

Expert
Licensed User
Longtime User
You can also set the text to be aligment center right
 
Upvote 0
Top