Thema: Delphi Alt-Shortcut ohne Sound

Einzelnen Beitrag anzeigen

Niko

Registriert seit: 23. Jun 2003
416 Beiträge
 
Delphi 2006 Professional
 
#2

Re: Alt-Shortcut ohne Sound

  Alt 27. Dez 2005, 22: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)
  Mit Zitat antworten Zitat