GIF image doesnot animate
Posted: Fri Sep 25, 2009 3:21 am
Dear sirs,
I use C++ builder 6.0, and TGIFImage version 2.2, and i put gif image direct into form, the gif is animated, but when I insert into RichviewEdit(RichView), the gif image is not animated, but when I click on the RichviewEdit(RichView), the gif image can changes to next frame. following is my code:
void __fastcall TForm1::Button2Click(TObject *Sender)
{
TGIFImage *gif = new TGIFImage();
gif->LoadFromFile("animate.gif");
gif->Animate=true;
//gif->AnimationSpeed=1000;
rve->AnimationMode = rvaniOnFormat;
rve->InsertPicture("gif", gif, rvvaBaseline);
rve->StartAnimation();
rve->FormatTail();
}
what's wrong with me?
Thanks in advance!
I use C++ builder 6.0, and TGIFImage version 2.2, and i put gif image direct into form, the gif is animated, but when I insert into RichviewEdit(RichView), the gif image is not animated, but when I click on the RichviewEdit(RichView), the gif image can changes to next frame. following is my code:
void __fastcall TForm1::Button2Click(TObject *Sender)
{
TGIFImage *gif = new TGIFImage();
gif->LoadFromFile("animate.gif");
gif->Animate=true;
//gif->AnimationSpeed=1000;
rve->AnimationMode = rvaniOnFormat;
rve->InsertPicture("gif", gif, rvvaBaseline);
rve->StartAnimation();
rve->FormatTail();
}
what's wrong with me?
Thanks in advance!