Tema: ScrollBar
Ver Mensaje Individual
  #2  
Antiguo 19-12-2004
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Reputación: 10
marcoszorrilla Va por buen camino
Prueba con esto:
Código Delphi [-]
   public
     { Public declarations }
   nReg:Integer;
    
   end;
 
 var
   Form1: TForm1;
 
 implementation
 
 {$R *.DFM}
 
 
 
 procedure TForm1.FormActivate(Sender: TObject);
 begin
 ScrollBar1.Max:=Table1.RecordCount;
 Table1.First;
 nReg:=1;
 end;
 
 procedure TForm1.ScrollBar1Change(Sender: TObject);
 begin
   if ScrollBar1.Position > nReg then
   begin
   Table1.Next;
   nReg:=nReg + 1;
   end
   else
   begin
   Table1.Prior;
   nReg:=nReg - 1;
   end;
 
 end;

Un Saludo.
__________________
Guía de Estilo de los Foros
Cita:
- Ça c'est la caisse. Le mouton que tu veux est dedans.
Responder Con Cita