Fórum Como Bloquear Alt F4 no meu sistema? #221896
24/03/2004
0
Caros amigos, ai vem uma pergunta que as vezes pode ser boba mas nao consegui implementar, como bloqueio o comando Alt+F4 dentro do meu sistema?!
Atenciosamente
Luiz Claudio V. Santos
Atenciosamente
Luiz Claudio V. Santos
Luiz.claudio.vieira
Curtir tópico
+ 0
Responder
Posts
24/03/2004
Jc_analista
Espero ter ajudado: :lol:
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;
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;
Responder
Gostei + 0
24/03/2004
Luiz.claudio.vieira
Este Fecha do codigo abaixo, e o que?! E uma variavel?
If Not fecha Then
Action := caNone Else
Action := caFree;
If Not fecha Then
Action := caNone Else
Action := caFree;
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)