Autor Beitrag
adler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Mo 31.05.04 10:42 
Habe keinen besseren Titel gefunden :roll:

Ich möchte, wenn ich in OnKeyDown ne bestimmte bedingung erfüllt habe,
die Space-Taste nicht ausfügen, habe es mit key := 0; und key := nil; (ging net...) versucht.
Aber so geht es nicht. jemand ne Ahnung? ;)

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Mo 31.05.04 16:41 
Du könntest es so machen, das du prüfst ob die gedrückte Taste Space war, und dann einfach das letzte Zeichen der Eingabe löschst. Der Keycode von Space ist übrigens VK_Space.
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Mo 31.05.04 16:56 
darüber bin ich mir im klaren ;)
Wie meinst du jetzt das letzte zeichen löschen?
Ist das net sehr performance aufwenig, wenn ich das zeichen makiere und seltext := '' mache?

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mo 31.05.04 17:01 
vllt mit key:=#0? oder ist das bei KeyPress???

_________________
"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)
adler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 511

Windows XP
Delphi 05 Pers
BeitragVerfasst: Mo 31.05.04 17:13 
OnKeyPress...
Wäre zu realisieren, aber nicht mit VK_UP, VK_DOWN... das brauche ich auch net.

_________________
Wo's nix zu gucken gibt, gibts vielleicht was zu hören.