Autor Beitrag
bayou
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 88


D6 PE
BeitragVerfasst: Di 14.06.05 20:31 
Hallo Leute,

ich habe gerade erst angefangen und versuche Programmieren zu lernen.
Wie erzeugt man denn zur laufzeit eine neue Line in einem RichEdit.

bisheriger Code
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
 begin
  if k.line[1] <> '' then begin
     RichEdit_SelectLine(m, 1);
     m.Lines[0]:=k.line[1];
  end;
  if k.line[2] <> '' then begin
     RichEdit_SelectLine(m, 2);
     m.Lines[1]:=k.line[2];
  end;
  if k.line[3] <> '' then begin
    RichEdit_SelectLine(m, 3);
    m.Lines[2]:=k.line[3];
  end;


Wenn ich die Lines nicht vorher in ausreichender Anzahl abgespeichert habe, wird immer nur die erste Zeile angezeigt.

thx

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Di 14.06.05 20:37 
ausblenden Delphi-Quelltext
1:
RichEdit1.Lines.Add('Eine ganz frische, neue Zeile :)')					


und benutzt auch diese netten [ delphi ] - Tags, danke :)

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
bayou Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 88


D6 PE
BeitragVerfasst: Di 14.06.05 21:39 
Also mein Problem scheint doch etwas größer zu sein als angenommen.
Mal sehen ob ich irgentwie ne Lösung finde.
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Mi 15.06.05 08:41 
user profile iconbayou hat folgendes geschrieben:
Mal sehen ob ich irgentwie ne Lösung finde.

hat die lösung von StefanH nicht geholfen? wenn nein musst du dein problem etwas genauer erklären.

lg martin
bayou Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 88


D6 PE
BeitragVerfasst: Do 16.06.05 10:12 
Das Problem ist, ich greife in einen Bereich ein, der von einem anderen Progr. wurde. Ich muss mir erstmal einen Überblick verschaffen.
Eas könnte sein, daß ich alles etwas umstellen muss.
Sobald ich es mir angeschaut habe werde ich mich wieder melden.

Vielen Dank