Hatte mir das ungefähr so vorgestellt.
Delphi-Quellcode:
type
TForm1 = class(TForm)
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
FlagMoreThan23 : Boolean;
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if FlagMoreThan23 then
begin
// load next lines
if restZeilen = 0 then
FlagMoreThan23:=false;
end
else
begin
if anzahlZeilen > 23 then
begin
// load first 23 lines
FlagMoreThan23:=true;
end;
end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
FlagMoreThen23:=false;
end;
Grüße
Klaus