Ver Mensaje Individual
  #2  
Antiguo 08-08-2003
Ruben_Cu Ruben_Cu is offline
No confirmado
 
Registrado: oct 2003
Ubicación: Mariel, Cuba
Posts: 271
Reputación: 0
Ruben_Cu Va por buen camino
Hola Michel, se supone que ya tienes el PageControl en un formulario, entonces el código siguiente te crea 10 TabSheet al hacer clic en el botón:
Código:
procedure TForm1.Button1Click(Sender: TObject);
var i:Byte;
begin
        for i:=1 to 10 do
        with TTabSheet.Create(Self) do
        begin
                PageControl := PageControl1;
                Name:='Mitab'+IntToStr(i);
                Caption := name;
        end;
end;
Espero te valga el ejemplo.
Saludos
Responder Con Cita