Animated GIF

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Sterl
Knows some wx things
Knows some wx things
Posts: 26
Joined: Sun Dec 19, 2004 3:07 pm

Animated GIF

Post by Sterl » Tue Mar 15, 2005 6:11 pm

Hi all,

Is there a way to show in a wxStaticBitmap an animated GIF ?

Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Post by Avi » Tue Mar 15, 2005 7:06 pm

You can look into the /wxWidgets-2.5.4/contrib folder and see the wxGIFAnimationCtrl (under the animate dir in /include and /src). :wink:

Sterl
Knows some wx things
Knows some wx things
Posts: 26
Joined: Sun Dec 19, 2004 3:07 pm

Post by Sterl » Tue Mar 15, 2005 7:46 pm

I'm using wxWidgets 2.4.2 and i don't see these files :cry:

Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Post by Avi » Tue Mar 15, 2005 7:58 pm

Download wxWidgets 2.5.4, and copy the two files from it's contrib folder for your own 2.4.2 usage. I *think* it should still work... (just try it, what can you lose? :wink: )

User avatar
Ryan Norton
Moderator
Moderator
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Re: Animated GIF

Post by Ryan Norton » Tue Mar 15, 2005 9:13 pm

Sterl wrote:Hi all,

Is there a way to show in a wxStaticBitmap an animated GIF ?
You could probably use wxMediaCtrl on windows (maybe having to use DirectShow) if you don't care about other platforms :).


Interestingly enough wxGifAnimationCtrl or whatever uses a simple Timer to render the animated GIF....
[Mostly retired moderator, still check in to clean up some stuff]

Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Post by Avi » Tue Mar 15, 2005 9:45 pm

wxMediaCtrl isn't available for wxWidgets 2.4.2 Ryan, as you already know. And that guy said he's using the older wxWidgets so... Maybe the best tip would be: upgrade to using wxWidgets 2.5.4. :)

Sterl
Knows some wx things
Knows some wx things
Posts: 26
Joined: Sun Dec 19, 2004 3:07 pm

Post by Sterl » Wed Mar 16, 2005 3:11 pm

I've tried to update to version 2.5.4 but it produces severals errors while compiling my project. I use dev c++ 4.9.9.2. :cry:

Linkku
Knows some wx things
Knows some wx things
Posts: 33
Joined: Sun Jan 02, 2005 5:16 pm

Post by Linkku » Wed Mar 16, 2005 4:10 pm

Sterl wrote:I've tried to update to version 2.5.4 but it produces severals errors while compiling my project. I use dev c++ 4.9.9.2. :cry:
You forgot to link needed libs?
--- http://linkku.has.it ---

- Debian Etch, KDevelop3, Anjuta2, wxWidgets CVS, GCC 3.3
- Windows XP, wxDevCpp, wxWidgets 2.6.1

Post Reply