Hi
I think this code would cause too many updates. What you want to do is update it every second or so after the trackbar has changed.
So add a timer (Enabled=False, Interval=750) and in its OnTimer event:
procedure MyTimerTimer();
begin
MyTimer.Enabled := False;
IV3.CurrentLayer.Rotate := AdvTrackBar1.Position;
IV3.LayersFixRotations;
IV3.Update;
IV3.Fit;
end;
And in the AdvTrackBar1 OnChange event:
procedure AdvTrackBar1Change();
begin
// Reset the timer
MyTimer.Enabled := False;
MyTimer.Enabled := True;
end;
Nigel
Xequte Software
www.xequte.com
nigel@xequte.com