Autor Beitrag
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mi 21.08.02 11:23 
Hi

Hab mal ne Frage

Wie kann ich eine Textbox füllen...also text dazu schreiben(aus dem Programm).

Und wie fülle ich eine Select Box(das mit dem Pfeil nach unten)?

Und geht es Irgendwie das Ich für jedes gefundene Object einen Link(Einen Text auf den man klicken kann) erzeuge und dass ganze auf einer Seite, auf der man Scrollen kann?

Thanx

Onz
GPF
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 85



BeitragVerfasst: Mi 21.08.02 11:46 
Du meinst wohl die beiden Delphi Komponenten TMemo und TComboBox.
Beide Objekte besitzen die Eigenschaft Items. Dort wird der Text eingetragen.
Neue Zeilen kannst Du durch
ausblenden Quelltext
1:
Memo1.items.add('TEST Zeile');					

bzw.
ausblenden Quelltext
1:
Combobox1.items.add('TEST Zeile');					

hinzufügen. Die Anzahl der Zeilen-Elemente kannst Du durch .items.count ermitteln. In der Delphi Hilfe werden alle wichtigen Schlüsselbefehle aber genauestens erklärt und kleine Beispielprogramme angeboten.

_________________
"Wenn Debugging ein Vorgang ist, Fehler aus einem Programm auszubauen, dann ist Programmieren der Vorgang, Fehler einzubauen."
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mi 21.08.02 11:54 
Thanks
Janoschka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Do 22.08.02 04:22 
beim Memo sinds Lines, oder?
Memo1.Lines : TStrings
soweit ich weiß....
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 22.08.02 09:09 
So ist es. Letztendich heißt die Eigenschaft aber nur anders. Der Typ (tStrings) bleibt dennoch und funktioniert genauso:
ausblenden Quelltext
1:
Memo1.Lines.Add ('TEST Zeile');					

Gruß
TINO