Autor Beitrag
iKilledKenny
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 394
Erhaltene Danke: 8

Win XP
D5 Prof, C# Express 2005
BeitragVerfasst: Di 23.01.07 16:09 
Hallo,

ich möchte einen mehrzeiligen Text mit "..." am Ende ausgeben, wenn er in ein vordefiniertes Rechteck nicht hineinpasst. Hat da jemand eine Idee? DrawText mit DT_END_ELLIPSIS funktioniert ja nur mit DT_SINGLELINE, und nicht mit DT_WORDBREAK...

Danke für eure Mühe
Alex
iKilledKenny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 394
Erhaltene Danke: 8

Win XP
D5 Prof, C# Express 2005
BeitragVerfasst: Do 25.01.07 08:44 
*push*
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 25.01.07 15:35 
Du kannst über TextWidth und TextHeight die Ausdehnung deines Textes ermitteln und dann am Zeilenende den Zeilenumbruch selber durchführen ... Dann brauchst Du nur in der letzten Zeile, die reinpasst, wenn zusätzlicher Text ausgegeben werden muss, das '...' anfügen ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.