Цитата(Delphist @ 20.2.2008, 10:50 ) | | Вообщем причина даже не в том, что ты предложил. |
Может передохнешь? А то уже общаешься сам с собой 
Добавлено через 4 минуты и 23 секунды
Цитата(Delphist @ 20.2.2008, 10:50 ) | | А то у меня нажитие на F1 приводит к посылке сообщения WM_HELP как заставить, чтобы нажатие F1 не приводило к посылке WM_HELP'a, вроде ShortCut'oв на F1 нигде не стоит. |
И не должно стоять, это система сама посылает.
| Цитата | WM_HELP Message Indicates that the user pressed the F1 key. If a menu is active when F1 is pressed, WM_HELP is sent to the window associated with the menu; otherwise, WM_HELP is sent to the window that has the keyboard focus. If no window has the keyboard focus, WM_HELP is sent to the currently active window.
|
Добавлено через 11 минут и 32 секунды А отключить это можно примерно таким образом:
| Код | unit Unit1;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs;
type TForm1 = class(TForm) procedure FormCreate(Sender: TObject); private function HelpEvent(Command: Word; Data: Longint; var CallHelp: Boolean): Boolean; end;
var Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject); begin Application.OnHelp := OnHelp; end;
function TForm1.HelpEvent(Command: Word; Data: Integer; var CallHelp: Boolean): Boolean; begin Result := False; CallHelp := False; end;
end.
|
|