Autor Beitrag
Nomis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: So 02.01.05 19:55 
Hallöchen

Ich möchte mit der keydown Metode eine Prozedur ausführen wenn das * auf dem Nummernblock (mal) gedrückt wurde.

Bei der enter Taste muss ich kay #13 abfragen weiss jemand wo ich evtl eine Liste mit den Tastaturtasten finde wo die zahlen hinter stehen ?

Gruß Simon
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 02.01.05 19:59 
Hallo!

Suche in Deiner Delphi-Hilfe mal nach den "Virtuellen Tastencodes" bzw. "Virtual Keycodes". Die sollten Dir helfen.

MfG
Christian

//edit: Ich habe Deinen zweiten Thread gelöscht.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Nomis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: So 02.01.05 20:07 
Sorry hat irgendwie gesponnen
Habe nur eine Liste gefunden wo

Key_Asterisk steht allerdings weiss ich jetzt nicht wie ich das einsetzen muss

if key = .... then
begin
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 02.01.05 20:13 
Hallo!

(1) Ich denke, Du brauchst VK_Multiply, da Du ja die Taste des numerischen Tastenblocks haben möchtest

(2) Verwendet wird das Ganze so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if key = VK_Multiply then
    ShowMessage('foo');
end;


MfG
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Nomis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: So 02.01.05 20:18 
Sorry habe etwas falsch erklährt arbeite mit der Keypress metode da funktioniert das nicht so einfach oder ?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 02.01.05 20:42 
Hallo!

Dabei hilft Dir die Funktion Ord().

MfG
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".