Lars Fosdal I am just using the component in its basic functionality. I am not even sure how to check whether it's a component problem or something to do with Windows. Do you have any "easy" code I can use? I don't have the JVCL installed here (I think there's code in there for this).
XE6: Vcl.ComCtrls.pas function TAnimate.GetActualResHandle: THandle; reveals where it tries to load the resources from. Is there some sort of resource that needs to be included?
2 min later: Yes, there is!
RAD Studio\xx.0\lib \win32\release or debug and \win64\release or debug contains the .res files!
Add {$R copyfile.res} to your project, Andrea Raimondi !
Each animation has it's own .res file.
If you do not have the resource files in BDS 2006, it is not unlikely that they can be sourced elsewhere.
Can the avi be played outside the app? I.e. is there a codec in place?
ReplyDeleteLars Fosdal I am just using the component in its basic functionality.
ReplyDeleteI am not even sure how to check whether it's a component problem or something to do with Windows.
Do you have any "easy" code I can use? I don't have the JVCL installed here (I think there's code in there for this).
A
I am wondering whether the problem is that Win 7 does not define those common AVIs anymore.
ReplyDeleteGroan,I hope this isn't the reason...
Tested with XE6 on Windows 8.1 Pro: Same problem. Set to active, but not animating.
ReplyDeleteTried doublebuffering, repetitions, timers, etc. - but no effect.
This doesn't look good AT ALL.
ReplyDeleteGroan...
Doesn't TAnimate have a Play method?
ReplyDeleteTried that too. No joy.
ReplyDeleteAndrea Raimondi - Are you doing actual file copying?
ReplyDeletedo you have visible set to true as well?
ReplyDeletealso check out
http://www.fmxexpress.com/build-a-progress-spinner-using-objects-in-delphi-xe6-firemonkey-on-android-and-ios/
Visible true. ParentDoubleBuffering doesn't affect it. If I turn off transparency, I get a pink rectangle, but no sign of an animation.
ReplyDeleteI have not had much success with tanimate on mobile (hint dont use it because of that).but check out the alternative in my link above
ReplyDeleteXE6: Vcl.ComCtrls.pas
ReplyDeletefunction TAnimate.GetActualResHandle: THandle; reveals where it tries to load the resources from. Is there some sort of resource that needs to be included?
2 min later: Yes, there is!
RAD Studio\xx.0\lib
\win32\release or debug and
\win64\release or debug contains the .res files!
Add
{$R copyfile.res}
to your project, Andrea Raimondi !
Each animation has it's own .res file.
If you do not have the resource files in BDS 2006, it is not unlikely that they can be sourced elsewhere.