Autor Beitrag
Ersin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Do 12.10.06 19:57 
Hi, bin totaler Neuling bei Delphi und hab ne Frage:
Wie kann man die Buttons ins TEdit verknüpfen?


Zum Beispiel klick ich auf ein Button und der Text erscheint im TEdit.

PS: Bitte dreht mir nicht die Suche an. Ich hab gesucht aber nur mit Zahlen und Taschenrechner gefunden, aber das hat mir leider nicht viel geholfen.

BTW: Wir kann man im ShowMessage einen Absatz hinzufügen?


Big THX im vorraus
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 12.10.06 20:03 
ausblenden Delphi-Quelltext
1:
2:
3:
Edit1.Text := 'DeinText';

showmessage('Zeile1'+#13+'Zeile2');

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Do 12.10.06 20:04 
Hallo Ersin,

etwas ins Edit schreiben:
ausblenden Delphi-Quelltext
1:
2:
3:
begin
  Edit1.Text := 'Ich steh jetzt im Edit!';
end;


Absatz: ShowMessage('Hallo!'+#13#10 + 'HEHE');

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Ersin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Do 12.10.06 20:05 
Boah, danke für die superschnelle Antwort!!!!

Muss ich gleich testen!


EDIT:

Wenn ich TEdit.Text := 'DeinText'; eingebe dann kommt immer ein Fehler.


[Warnung] Unit4.pas(8): W1005 Unit 'FileCtrl' ist plattformspezifisch

[Fehler] Unit4.pas(129): E2096 Methodenbezeichner erwartet

[Fataler Fehler] Project3.dpr(5): F2063 Verwendete Unit 'Unit4.pas' kann nicht compiliert werden
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Do 12.10.06 20:17 
user profile iconErsin hat folgendes geschrieben:
[Fehler] Unit4.pas(129): E2096 Methodenbezeichner erwartet

[Fataler Fehler] Project3.dpr(5): F2063 Verwendete Unit 'Unit4.pas' kann nicht compiliert werden
Hallo,

schau doch mal im Objektinspektor, wie dein Editfeld heisst (Eigenschaft Name). Normalerweise ist das Edit1. Mit diesem Name kannst du dann auf die Eigenschaften, also auch auf die Eigenschaft Text zugreifen:
ausblenden Delphi-Quelltext
1:
Edit1.Text := 'TEST';					


Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Ersin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Do 12.10.06 20:20 
Das heisst TEdit


EDIT:
Hat sich erledigt!!!
Es heisst doch Ausgabe (!)

Vielen Danke für die Hilfe!!!

Echt super Community ;)