Fórum Como Bloquear Alt F4 no meu sistema? #221896
24/03/2004
0
Atenciosamente
Luiz Claudio V. Santos
Luiz.claudio.vieira
Curtir tópico
+ 0Posts
24/03/2004
Jc_analista
Function GetStateK (Key: integer): boolean;
begin
Result := Odd (GetKeyState (Key));
end;
procedure Tfrm_HIP.FormClose(Sender: TObject; var Action: TCloseAction);
begin
If Not fecha Then
Action := caNone Else
Action := caFree;
end;
procedure Tfrm_HIP.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
If GetStateK (VK_LMENU) And (Key = VK_F4) Then
fecha := False;
end;
Gostei + 0
24/03/2004
Luiz.claudio.vieira
If Not fecha Then
Action := caNone Else
Action := caFree;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)