Ver Mensaje Individual
  #2  
Antiguo 16-06-2003
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
Prueba este Trucomania:

Código:
begin 
  if Key = #13 then                                                 
    if not (ActiveControl is TDBGrid) then begin       
      Key := #0;                                                        
      Perform(WM_NEXTDLGCTL, 0, 0);                 
    end 
    else if (ActiveControl is TDBGrid) then                
       with TDBGrid(ActiveControl) do 
        if selectedindex < (fieldcount -1) then             
          selectedindex := selectedindex +1
        else 
          selectedindex := 0;
end;
recuerda poner la propiedad KeyPreview de la form a true.
__________________
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