wxRichTextCtrl supporting animation

6 views
Skip to first unread message

Marcus Frenkel

unread,
Dec 16, 2009, 3:52:07 AM12/16/09
to wx-users
Hi,

Are there any plans of supporting/showing animated gifs in wxRichTextCtrl?

Thx, Marcus

Julian Smart

unread,
Dec 17, 2009, 4:28:05 AM12/17/09
to wx-u...@googlegroups.com
Marcus Frenkel wrote:
> Hi,
>
> Are there any plans of supporting/showing animated gifs in wxRichTextCtrl?
>
No, but feel free to have a go at this - it shouldn't too difficult.
Most of the animation code is in a wxAnimation class, so then it'll be a
case of reproducing the code in wxAnimationCtrl (see
src/generic/animateg.cpp and src/common/animatecmn.cpp) that zaps the
frames to the window at intervals. The wxRTC would need to look through
its images to check which are animations and draw the frames as
appropriate. The loaded animation would have to be stored in the
relevant wxRTC object so this means it would probably need to be done in
2.9 since binary compatibility with 2.8 could not be preserved.

Regards,

Julian

Reply all
Reply to author
Forward
0 new messages