Ver Mensaje Individual
  #3  
Antiguo 15-08-2007
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.058
Reputación: 30
jhonny Va camino a la famajhonny Va camino a la fama
Si aún no es suficiente el codigo que te plantea egostar, haz lo siguiente en la validación que haces en el OnExit del Edit:

Código Delphi [-]
procedure TForm1.Edit1Exit(Sender: TObject);
begin
  if not Button2.Focused then //Esta linea verificara, que no sea el Boton2 quien este recibiendo el foco
     if Edit1.Text = '' then 
        raise Exception.Create('Error: Digite un dato');
end;
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/
Responder Con Cita