- Code: Select all
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
GdViewer1->AnimateGIF = true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
GdViewer1->DisplayFromFile( WideString( "c:\\1.gif") );
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
GdViewer1->DisplayFromFile( WideString( "c:\\2.gif") );
}
1.gif and 2.gif are animation gif.
now, I click Button1, animation gif 1.gif start animation.
but 2.gif does not start animatiion when click Button2.
and I click Button1 again, 1.gif also dows not start animation.
why?
