Auto-Elipse label text

ChrShe

Member
Licensed User
Longtime User
Good day!

Sorry for the noob question, I'm completely spacing on how to do this...

Could someone please show me how to auto-elipse the text of a label?

If the if the text length of a label is greater than the with of the label, the text gets appended with "...".

i.e. The label has enough room for "things and stuff", but the text property contains "Things and stuff and the like". So, the text gets appended to "Thing and st...".

Make sense?

Thanks a TON!!!
 

ChrShe

Member
Licensed User
Longtime User
Ooo!!!
Awesome! Thanks...that's going to be even cooler in my app. :D

~chris
Sent from my DROID RAZR using Tapatalk 2
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
Nice. Never knew this was possible on B4A. It works with Labels. Can we do this with Listview as well?
 
Upvote 0

ChrShe

Member
Licensed User
Longtime User
That is exactly what I'm going to try...tomorrow though. It's 1:30am here. :)

It would stand to reason, that you can use this with the listview, since you can get to the listview item labels and set label properties.

Cheers.
Sent from my DROID RAZR using Tapatalk 2
 
Upvote 0

ChrShe

Member
Licensed User
Longtime User
My apologies, Erel...
This wasn't meant to be a duplicate question...rather an informative to people who might be following this thread and not the other.

In the future, I'll simply link to the question in the other thread.

Thanks for your replies!!! :)

And for those not following the other thread, that asked this question, Erel said that you cannot use this reflector code with Listview since the labels is only a model of the real labels created internally. Instead, use a scrollview.

Cheers.
~Chris
Sent from my DROID RAZR using Tapatalk 2
 
Upvote 0
Top