Forum: Sonstige Fragen zu Delphi
Delphi
by Hawkeye219,
12. Feb 2009
Hallo Thomas,
ich sehe deine Ergänzung leider erst jetzt. Natürlich kannst du auch Kombinationen mit den Umschalttasten abfragen:
procedure TForm1.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
var
Key : TShortCut;
begin
Key := {Menus.}ShortCut(Msg.CharCode, KeyDataToShiftState(Msg.KeyData));
Forum: Sonstige Fragen zu Delphi
Delphi
by Hawkeye219,
23. Jan 2009
Hallo,
zum sicheren Abfangen der Pfeiltasten könnte man das Ereignis TForm.OnShortCut verwenden:
procedure TForm1.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
var
Key : TShortCut;
begin
Key := {Menus.}ShortCut(Msg.CharCode, KeyDataToShiftState(Msg.KeyData));