L
liugaohui
Unregistered / Unconfirmed
GUEST, unregistred user!
implementation
var
kk:integer;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
kk:=0;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
if kk>imagelist1.Count-1 then
kk:=0
else
kk:=kk+1;
ImageList1.GetBitmap(kk,Image1.Picture.Bitmap);
end;
在每次Button1点击时更换image的图片,即取imagelist的下一个图片,为什么我的只能显示一个?
祝大家新年愉快!
var
kk:integer;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
kk:=0;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
if kk>imagelist1.Count-1 then
kk:=0
else
kk:=kk+1;
ImageList1.GetBitmap(kk,Image1.Picture.Bitmap);
end;
在每次Button1点击时更换image的图片,即取imagelist的下一个图片,为什么我的只能显示一个?
祝大家新年愉快!