Registriert seit: 23. Jun 2003
416 Beiträge
Delphi 2006 Professional
|
Re: Alt-Shortcut ohne Sound
27. Dez 2005, 23:10
Hi,
das geht indem du im entsprechenden Formular WM_MENUCHAR abfängst:
Delphi-Quellcode:
procedure TForm1.WMMenuChar(var msg: TMessage);
begin
if msg.WParamLo = ord('a') then // Alt + a abfangen
msg.ResultHi := MNC_CLOSE;
end;
"Electricity is actually made up of extremely tiny particles called electrons, that you cannot see with the naked eye unless you have been drinking." (Dave Barry)
|