procedure TForm1.FormShow(Sender: TObject);
var
i : integer ;
t : TComponent ;
begin
for i := 1 to 9 do begin
t := FindComponent('PinchEffect'+IntToStr(i));
if (t <> nil) then
TPinchEffect(t).Center := PointF(40,10) ;
end;
end;
procedure TForm1.TrackBar1Change(Sender: TObject);
var
i : integer ;
t : TComponent ;
v : Single ;
begin
v := TrackBar1.Value ;
for i := 1 to 9 do begin
t := FindComponent('PinchEffect'+IntToStr(i));
if (t <> nil) then
TPinchEffect(t).Strength := v ;
end;
end;