Jump to content
Skullcode

TWebBrowser very Weird Behavior with Gif images

Recommended Posts

i have created two Forms 

Form 1

Form 2

each form has TWebBrowser Control 

 

now i have a Gif that i call its name Foo.gif  

<img  src="Foo.gif" border="0" />

when i load this image in form1 TWebBrowser its animated normally .

when i load it in Form2 TWebBrowserit doesn't animated 

i am Adding this gif once at run Time To each form when form Created 

 

also i notice that this happened if the gif that i try to load to another TWebBrowser have the same name 

 

so if i load foo.gif in form1 it will animate in form1 hence when loaded to Form2 TWebBrowser and it got the same name of the previously loaded one it doesn't animate in Form2 TWebBrowser

 

any idea why this behavior happened  ?

Edited by Skullcode
Changed To TwebBrowser sense its related to TwebBrowser overall

Share this post


Link to post

Any one tested and get same results? Is it a bug with twebbrowser itself? 

Edited by Skullcode

Share this post


Link to post

I can reproduce it, but I have no idea why this is the case. I suppose it has nothing to do with GIF files, the 2nd TWebBrowser just doesn't get repainted. If you resize your window you see how portions of the 2nd browser view will get repainted.

  • Sad 1

Share this post


Link to post

Yes its very weird i guess its a bug with twebbrowser on reading similar gif names in multiple instances 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×