I'm using Delphi XE3, and trying to create a massaging application same as outlook type, but when I try to load the Tscroll box with data about 2000 record it's getting so slow!
How can outlook scrolbox hold that much of data without being slow or flickering when scrolling ?
This is my code below to fill the scroll box with panels which later will contain information.
procedure TForm1.IdThreadComponent1Run(Sender: TIdThreadComponent);
var i: integer;
Pnl : TPanel;
begin
for i := 1 to 2000 do
begin
Pnl := TPanel.Create(Self);
Pnl.Align := alTop;
Pnl.parent := scrollbox1;
Pnl.Caption := inttostr(i);
end;
IdThreadComponent1.Active := false;
end;