Forum: Object-Pascal / Delphi-Language
Delphi
by Neutral General,
27. Feb 2008
Ja.. das komische ist ja:
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
Caption := IntToHex(Ord(KEy),2);
end;
da kommt $2B raus wenn man auf + drück... Deswegen dachte ich zuerst $2B. :P
Forum: Object-Pascal / Delphi-Language
Delphi
by Neutral General,
27. Feb 2008
Hi,
So gehts bei mir:
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if (Key = $BB) or (Key = VK_ADD) then
ShowMessage('!');
end;
Forum: Object-Pascal / Delphi-Language
Delphi
by Neutral General,
27. Feb 2008
Hi,
Genau. Und das kannst du mir Ord('+') tuen oder ganz einfach abfragen ob die Taste = $2B. ;)
Gruß
Neutral General