Autor Beitrag
breakdancer1111
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: Fr 17.01.03 12:03 
Hallo!

Wie kann man das machen, das wenn man z.B. die Cursor Taste Hoch drückt und dann Image1 angezeigt wird?

Ciao Breakdancer1111 :shock:
Luncustaf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324

Win 2k
D7 Ent.
BeitragVerfasst: Fr 17.01.03 12:48 
du müsstest herausfinden welchen code die taste shift (ich nehme mal an das du die meinst mit dem wort hoch) hat.

dann machst du bei dem ereignis OnKeyPress deines Formulars die abfrage ob die eingabe der code ist - und wen nja dan namchst du nen Image1.Visible := true;

ich weis net ob das so stimmt weil ich net weis wie die tastatur eingabe ist oder wie man abfragt welcher buchstabe oder welche taste betätigt wurde.

hab einfach mal geraten.


gr€€tz
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 17.01.03 16:57 
geh mal im objekt manager in die eigenschaften deines formulars rein,klick dann die registerkarte ereignisse an und setzt den cursor in das feld onkeypress und drücl dann F1. dann müsste die delphi Hilfe aufgehen, in der steht drinne, wie dir die funktion die testendrücke übergibt. da suchst du einfach nach deiner curorup teste und fertoig !

_________________
In the beginning was the word.
And the word was content-type: text/plain.