Autor Beitrag
dr. rom4o
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59


TMT-Pascal, D3 Prof, C++Builder
BeitragVerfasst: Mo 06.12.04 16:32 
Ich habe ein memo,
und möchte so
ausblenden Delphi-Quelltext
1:
2:
3:
zeichen : ansichar;
...
output.Lines[0]:=output.Lines[0]+zeichen;

einzelne Zeichen hinzufügen.
doch nach einer weile wird die erste Zeile überschrieben.
ich hab es schon
mit
ausblenden Delphi-Quelltext
1:
2:
if (lauf1 mod 127) = 0 then inc(linepos);
output.Lines[linepos]:=output.Lines[linepos]+zeichen;

versucht, doch dann sehen die texte je nach Breite der Buchstaben
unterschiedlich lang aus.

wie kann man einfach Bachstaben ranhängen bis die Zeile bzw. line voll ist?

ciao

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.

_________________
Sei frei!!! ...doch eigentlich bist du es nie...denn Alles ist determiniert
herzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 168

WINXP pro, SUSE Linux 9.0
D7 Pers.
BeitragVerfasst: Mo 06.12.04 16:38 
warum benutzt die nicht die Eigenschaft "Text" ?
Ist doch viel einfacher
dr. rom4o Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59


TMT-Pascal, D3 Prof, C++Builder
BeitragVerfasst: Mo 06.12.04 16:45 
Titel: Aha, aber wie kann ich denn da diese eigenschaft.....
nutzen...??????????

_________________
Sei frei!!! ...doch eigentlich bist du es nie...denn Alles ist determiniert
herzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 168

WINXP pro, SUSE Linux 9.0
D7 Pers.
BeitragVerfasst: Mo 06.12.04 16:50 
Für das auffüllen der Lines einfach..

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.Button1Click(Sender: TObject);
var
  i:integer;
begin
  i:=0;
  while Length(memo1.Lines[i])<20 do
    memo1.Lines[i]:=memo1.Lines[i]+'A';
end;


Wenn du einfach nur wass hinzufügen willst.

ausblenden Delphi-Quelltext
1:
memo1.text:=memo1.text+'A';					
dr. rom4o Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59


TMT-Pascal, D3 Prof, C++Builder
BeitragVerfasst: Mo 06.12.04 16:59 
Titel: hey danke
ich glaub das hilft mir sehr weiter...


cu

_________________
Sei frei!!! ...doch eigentlich bist du es nie...denn Alles ist determiniert