Ver Mensaje Individual
  #1  
Antiguo 08-06-2006
Acanol Acanol is offline
Miembro
 
Registrado: abr 2006
Ubicación: Elche
Posts: 75
Reputación: 19
Acanol Va por buen camino
Simular el avance y retroceso del tabulador

Podemos crear un evento OnkeyPress y asi movernos por los distintos Controles, con las teclas deseadas

(Ej.: (+),(-)).

Código Delphi [-]
procedure TForm*.OnKeyPress(Sender: TObject; var Key: Char);
begin
 If Key =#45 Then Begin //#45= '-'
     keybd_event(16,0,0,0); // SHIFT presionado
     keybd_event(9,0,0,0); // TAB presionado
     Keybd_event(16,0,2,0); // Soltar el SHIFT  (NO SE PUEDE OMITIR)
     keybd_event(9,0,2,0); // TAB Released (Puede ser omitido)
     Key := #0
   end;
 if key=#43 then begin //#43='+'
    keybd_event(9,0,0,0); // TAB presionado
    keybd_event(9,0,2,0); // Soltar el Tab
    Key:=#0;
 end;
end;
Responder Con Cita