这个其实很简单啊,你在form上放置一个panel,然后在panel上放置一个dbimage1,注意dbimage1
的width and height尽量大些(超过panel的尺寸),然后dbimage1.center:=false;
panel1.bevelouter:=bvlowered;在dbimage1下面放置一个scrollbar1,
procedure TForm1.ScrollBar1Change(Sender: TObject);
var
w:integer;
r:real;
begin
r:=0;
w:=dbimage1.Picture.Graphic.Width;
if w>panel1.Width then
r:=(w-panel1.Width)/scrollbar1.Max;
dbimage1.Left:=-round(r*scrollbar1.Position);
end;