Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Do 23.09.04 08:05 
hallo leute,
ich habe eine Listview und etwas längere überschriften in den columns(spalten). jetzt möchte ich einen zeilenumbruch versuchen um die ansicht zu verbessern.
kann mir jemand helfen?

mfg
moloch
kloeffler
Hält's aus hier
Beiträge: 5

WIN 2000
D5
BeitragVerfasst: Do 23.09.04 08:46 
hi.

wenn der ViewStyle des ListViews im OI auf vsIcon gesetzt ist:

ausblenden Delphi-Quelltext
1:
Item.Caption := 'Zeile1' + #13#10 + 'Zeile2';					


bei anderen ViewStyles geht das so nicht.
Versuchs dann mit dem onCustomDrawItem Event und TextOut - OwnerDraw := False;

gruss,

kai
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Fr 24.09.04 11:33 
hey,
ich glaube der aufwand ist zu hoch.gibt es nichts einfacheres?
also ich will ja nur die caption im column-objekt vom listview vertikal haben.

mfg
moloch