LAMW-How do I get the width and height of a character? lazarus / 43-Android ---------------------------------------------------------------------- lazpas · 2022-09-19 00:47 How do I get the width and height of a character? Thanks. ---------------------------------------------------------------------- jmpessoa · 2022-09-19 01:15 About what component? ---------------------------------------------------------------------- lazpas · 2022-09-19 01:26 Quote from: jmpessoa on September 19, 2022, 03:15:51 am About what component? jlistview ---------------------------------------------------------------------- rsu333 · 2022-09-19 13:51 Try demo ---------------------------------------------------------------------- jmpessoa · 2022-09-19 23:20 QuoteTry demo Yes! demos "AppListViewDemo2"  and ""AppListViewDemo7"   are about "drawing" items..... But, I don't know exactly what  @lazpaz need.... ---------------------------------------------------------------------- lazpas · 2022-09-20 00:28 Hi, I want to know the width of one character, and then calculate the width of all characters. When the width of all characters is greater than the width of the control, intercept the specified number of characters and add "..." after the characters. Thanks ---------------------------------------------------------------------- jmpessoa · 2022-09-20 21:25 Done! jListView: New "ItemTextEllipsis" property! Now You can try: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i    jTextView1.SetEllipsize(emEnd);   jTextView1.Text:= 'Johann Wolfgang von Goethe was a German poet, playwright, novelist, scientist, statesman, theatre director, and critic.' ;    jListView1.ItemTextEllipsis:= True;   jListView1.Add('Johann Wolfgang von Goethe was a German poet, playwright, novelist, scientist, statesman, theatre director, and critic.');   jListView1.ItemTextEllipsis:= False; ---------------------------------------------------------------------- lazpas · 2022-09-22 00:42 Thank you very much,jmpessoa. I will try