Autor Beitrag
Mortal-Shadow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 110



BeitragVerfasst: So 29.06.08 20:56 
Hallo erstmal,

ich bin noch ein ziemlcher delphi noob und bitte daher um nachsicht falls die frage etwas trivial ist, da ich gerade erst dabei bin mir
delphi beizubringen.

Es geht darum, dass ich auf einem label anzeigen will, welche taste gedrückt wird. Hierzu will ich readkey verwenden:

Die Variable dazu habe ich folgend gesetzt:

ausblenden Delphi-Quelltext
1:
2:
var
taste : char;

-> dürfte stimmen

die zeile:
ausblenden Delphi-Quelltext
1:
taste := ReadKey;					


gibt jedoch folgende fehlermeldung aus:
Undeclared identifier: 'ReadKey'
ich schließe, dass ich ihn bei uses einbinden muss, doch wie?
nachdem ich vergeblich google gequält habe, habe ich mich entschlossen hier im forum zu posten.

PS: Über tipps bezüglich weiterführender (und für mich als einsteiger geigneter!) lektüre wäre ich dankbar.


Grüße,
MS

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am So 29.06.2008 um 22:56
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 29.06.08 21:58 
Moin und :welcome: im Forum!

user profile iconMortal-Shadow hat folgendes geschrieben:
Es geht darum, dass ich auf einem label anzeigen will, welche taste gedrückt wird. Hierzu will ich readkey verwenden:
Davon würde ich - in einer VCL-Anwendung - abraten. Schau dir mal das Ereignis OnKeyPress des Formulars an, damit solltest du weiter kommen. :idea:

user profile iconMortal-Shadow hat folgendes geschrieben:
Über tipps bezüglich weiterführender (und für mich als einsteiger geigneter!) lektüre wäre ich dankbar.
Schau mal hier, vielleicht kommst du damit schon weiter. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Mortal-Shadow Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 110



BeitragVerfasst: Mo 30.06.08 06:04 
Ha - mit onkeypress funktioniert alles.
Vielen dank auch für den link.
Grüße,
MS
huuuuuh
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 665
Erhaltene Danke: 19

win xp, (win vista), win 7
VS 2008 Express Edition, VS 2010 Express Edition, VS 2010 Professionell
BeitragVerfasst: Mo 30.06.08 06:09 
[ot]MS? Hinweise auf microsoft im forum?[/ot] :mrgreen: