Re: Component for showing animated GIFs or AVI



Günter Kieninger wrote:

In article <memo.20080626101057.7592A@xxxxxxxxxxxxxxxxxxxxxxx>,
Matthew Jones wrote:
I just downloaded Melander's TGifImage, read the instructions on
how to make it use threads, and it worked. I don't have any info
beyond that.

Hmm, now I played around with settings of Drawoptions (I use a TImage
to show the gif). But everytime I have a Sleep(1000) in the
Mainthread the animation is stopping until the sleep is over.
TAnimate is working fine but is not transparent and TJvGifANimator is
flickering very hard.
I have to decide between ugly controls which are working or nice
controls which are not working while a sleep(...)

You have to remember the facts.

1) VCL is NOT thread safe.
2) What ever you do with a TImage, TGifImage etc they will always use
the main thread for drawing.
3) in order to have a completly disconnected window that can be used
(drawen to) by a thread you need to make sure that you will not use
any delphi forms or any vcl components in there.

I think there are ways to full the end user to beleive that what he is
seeing is a trasparent animation but you will not find any VCL that can
play an animation outside the main thread.

You need to get down to Windows API calls to create the windows and the
control that will play the animation. Also you need to make sure that
after it starts playing it will not interact with the main thread or
vcl in any way (not with out synchronisation).

regards
Yannis.
--

.



Relevant Pages

  • Re: more info on future of borland C++ compilers
    ... VCL is so old that the .NET framework resembles it a lot: ... controls, of course but Windwos controls are almost the same since Win 3.1. ... Only a few new controls in Windows 95. ...
    (borland.public.delphi.non-technical)
  • Re: My rant about the "throw out delphi and re-write it in C#" crowd.
    ... nothing out there that I've seen for WinForms that hasn't already been ... done to death by 3rd party vendors for VCL? ... thought we were talking about being able to port Delphi applications to ... Drop it on a Windows Form. ...
    (borland.public.delphi.non-technical)
  • Re: The problem of Delphi
    ... not entire controls (see InvalidateXXX ... > thus overcome many align problems of the VCL. ... > and powerful than GDI which struck roots in VCL. ... We view .NET as a *platform* and not as some tacked on technology. ...
    (borland.public.delphi.non-technical)
  • Re: mouse over problem on taskbar
    ... To set use Windows Calculator and the values from the table below. ... Active window tracking 0 Active window tracking disabled. ... Menu animation 1 Menu animation enabled; menu effect depends on value of bit 9. ... Menu fade 1 Menu fade animation enabled. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Printing Engine or System
    ... Well we have opted for using our old time tried and trusted Suite of ActiveX controls, which have everything that I have asked for in my main post, in Delphi. ... Just to quote when we decided to adopt Delphi for all future projects we heard a lot about WollWoll InfoPower VCL and many people told us that every Delphi Developer writing database oriented software should have this VCL. ...
    (borland.public.delphi.thirdpartytools.general)