1

I am using BDS2006 on Win 7 x64 Pro. These are my steps:

  • Create a new application
  • Put a TAnimate on the form
  • Select "aviFindfile" as CommonAvi
  • Activate the component at design time
  • Run

Nothing happens. Anybody's seen this before?

Thanks!

Andrea Raimondi
  • 527
  • 8
  • 30
  • The control is known to work. Perhaps the avi is duff. – David Heffernan Oct 23 '14 at 14:31
  • @DavidHeffernan, if you have a Win7 x64, it's very easy to check if it's currently working with common AVIs. My suspect is that, since Win7 doesn't use that AVI anymore, it might not work at all on this Operating System. But that's just me, I could be wrong. – Andrea Raimondi Oct 23 '14 at 14:39
  • I just tried looking for AVI files on my machine and the ones in "Common files\Microsoft\Ink\en-US" are all black. What the heck. – Andrea Raimondi Oct 23 '14 at 14:49
  • Hmm, I cannot make this thing work either ...... – David Heffernan Oct 23 '14 at 14:51
  • I have just tried this in Delphi 7. When I run the application on Windows 7 64 bit no animation is seen and TAnimate component is returning 0 as number of frames so I uspect that the aniation doesent even get loaded. But if I run this same application inside virtual machine with WindowsXP the animation runs just fine and TAnimate component is returning 8 as the nimber of frames in animation. So I gues there were some changes in the way how each windows stores the common animations. – SilverWarior Oct 23 '14 at 14:52

1 Answers1

4

You have to add a TShellResources component to make it work.

Uwe Raabe
  • 45,288
  • 3
  • 82
  • 130
  • I can't see such a component in BDS 2006. Do you know what component do I need to add in that version? – Andrea Raimondi Oct 23 '14 at 15:07
  • I cannot check for BDS 2006. The unit containing this component merely includes some res files. If those are not available in BDS 2006, sorry. – Uwe Raabe Oct 23 '14 at 15:16
  • If somebody can confirm that adding the component makes it work, I'll accept your answer, bow my head in sadness and go away... – Andrea Raimondi Oct 23 '14 at 15:49
  • Yes, this works. So it seems EMBT comes with their own set of animations... – TLama Oct 23 '14 at 16:22
  • 1
    Adding the component is the point and click way to do it. Simpler is just to add the `ShellAnimations` unit to the .dpr uses clause. – David Heffernan Oct 23 '14 at 16:52
  • Add {$R copyfile.res} to your project. If you do not have the resource files in BDS 2006, it is not unlikely that they can be sourced elsewhere. – Lars Fosdal Oct 23 '14 at 20:29