Autor Beitrag
Andre :-)
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Sa 08.02.03 00:34 
Hallo,

habe gesucht aber nicht gefunden. Kann mir jemand einen Codefragment zeigen, wie ich auf die ENTF Taste zugreifen kann?

Nutze Delphi 6 und finde einfach nichts. :oops:

Danke

Moderiert von user profile iconTino: Titel geändert.

_________________
Security is just a feeling, but never reality
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: Sa 08.02.03 01:59 
Erstell ein TForm OnKeyDown Event und fang die Taste ab. Optional kannst Du TForm.KeyPreview auf True setzen, damit alle Ereignisse, egal welche Komponente den Keyb-Focus hat, erst bei dem Form-Objekt landen...

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  IF Key = VK_DELETE THEN
    BEGIN
      //hier den Code für die ENTF-Taste
      //evtl. das Weiterleiten an die Komponenten stoppen:
      //Key := 0;
    END;
end;

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca
Andre :-) Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55



BeitragVerfasst: Sa 08.02.03 02:18 
Cool danke.

Gruss

Moderiert von user profile iconTino: Hinweis auf anderes Topic entfernt.

_________________
Security is just a feeling, but never reality