Ver Mensaje Individual
  #2  
Antiguo 12-05-2013
Avatar de ecfisa
ecfisa ecfisa is offline
Moderador
 
Registrado: dic 2005
Ubicación: Tres Arroyos, Argentina
Posts: 10.508
Reputación: 36
ecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to behold
Hola darkmaster360.

Por favor, cuando dudes en que foro debe ir tu mensaje no utilices Delphi/web utiliza el foro Varios, luego algún moderador se encargará de direccionarlo donde corresponda, muchas gracias.

Código Delphi [-]
...
implementation

const
   INCREMENTO = 100; // aquí el valor que quieras darle al incremento

procedure TForm1.FormCreate(Sender: TObject);
begin
  KeyPreview := True;
end;

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
var
  ti: Integer;
begin
  ti := Timer1.Interval;
  with Timer1 do
    case Key of
      VK_UP  : if ti < MaxInt then Inc(ti, INCREMENTO);
      VK_DOWN: if ti-INCREMENTO > 0 then Dec(ti, INCREMENTO);
    end;
  Timer1.Interval := ti;
end;
...

Saludos.
__________________
Daniel Didriksen

Guía de estilo - Uso de las etiquetas - La otra guía de estilo ....
Responder Con Cita