Pantalla de login: desactivar el login automático cuando el usuario escribe algo.

git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@302 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
David Arranz 2008-02-21 19:34:50 +00:00
parent 615369f8e1
commit 16a8cfb8c1
2 changed files with 8 additions and 0 deletions

View File

@ -1056,6 +1056,7 @@ object fEditorLogin: TfEditorLogin
Width = 278
Height = 21
TabOrder = 1
OnKeyPress = edtUserKeyPress
end
object Button1: TButton
Left = 16

View File

@ -32,6 +32,7 @@ type
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure edtUserKeyPress(Sender: TObject; var Key: Char);
private
FController : IUsuariosController;
FIntentos : Integer;
@ -93,6 +94,12 @@ begin
Timer1.Enabled := True;
end;
procedure TfEditorLogin.edtUserKeyPress(Sender: TObject; var Key: Char);
begin
// Desactivar el timer cuando el usuario empieza a escribir
Timer1.Enabled := False;
end;
procedure TfEditorLogin.FormCreate(Sender: TObject);
begin
FIntentos := 0;