Autor Beitrag
Dee-M-Cee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Fr 20.01.06 17:37 
Hallo.
Ich möchte in einem String, der sich aus Einzelteilen zusammensetzt Zeilenumbrüche einfügen und das ganze dann im StringGrid ausgeben.
Für die Zeilenumbrüche wollte ich #13#10 benutzen, ich bekomme jedoch immer nur zwei Vierecke ausgegeben und der Zeilenumbruch wird nicht gemacht.

Der String schaut so aus:

ausblenden Delphi-Quelltext
1:
2:
3:
result:=IntToStr(Eintraege[iMonat,iTag].iTag)+'.'+IntToStr(Eintraege[iMonat,iTag].iMonat)+'.'+IntToStr(Eintraege[iMonat,iTag].iJahr)+#13#10+
         Eintraege[iMonat,iTag].sDauer+#13#10+
         FloatToStr(Eintraege[iMonat,iTag].fDistanz);
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 20.01.06 17:57 
Hallo

steht sicher auch schon im Forum. Du mußt die Zellen selberzeichnen (Suche in: Delphi-Forum, Delphi-Library ONDRAWCELL, verwende für die Textausgabe nicht textout, sonder Suche in: Delphi-Forum, Delphi-Library DRAWTEXT, das kann die Zeilenumbrüche auch richtig dartstellen.

Mfg frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)