Autor Beitrag
Ratchet
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63

Windows7 x86
D5 Ent., D2006 Arch.
BeitragVerfasst: Mo 22.05.06 15:45 
Ich habe ein ListView welches die EInträge mit ViewStyle=vsList anzeigt. Allerdings werden die Texte der Items nicht komplett dargestellt sondern ab einer bestimmten Breite abgeschnitten und drei Punkte (...) rangehängt. Jemand eine Idee?
Arno Nym
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 131



BeitragVerfasst: Di 23.05.06 11:31 
Hi,

so gehts z.B.:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
 var v : TListItem;
 .
 .
 .
 v := Listview1.Items.Add;
 v.Caption := 'ganz schön langer Eintrag und trotzdem komplett angezeigt';
 Listview1.ViewStyle := vsList;
 Listview1.Column[0].Width := -1; //das ist wichtig, das setzt die Spaltenbreite auf die Länge des Inhalts


MFG, Arno Nym

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt