Animated Gif
Animated Gif
Is it possible to show gif animation in RV?
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I confirm the problem: if you set cxrv.Properties.Properties.AnimationMode = rvaniOnFormat at designtime, it does not work.
Fix: open cxTRichView.pas, find procedure TcxCustomTRichViewEdit.Loaded, change it to:
This fix will be included in the next update.
Fix: open cxTRichView.pas, find procedure TcxCustomTRichViewEdit.Loaded, change it to:
Code: Select all
procedure TcxCustomTRichViewEdit.Loaded;
begin
inherited;
ShortRefreshContainer(False);
if InnerEditor <> nil then
InnerEditor.Loaded;
end;
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
How do you load the image? The animation is supported if it is loaded as TGifImage, not as DevExpress graphic class (TdxSmartImage)
If you load a gif file using TPicture.LoadFromFile or RVGraphicHandler.LoadFromFile, the most probably, the image is loaded as TdxSmartImage.
You can unregister TdxSmartImage by calling
TPicture.UnregisterGraphicClass(TdxSmartImage);
when the application starts (include dxGDIPlusClasses in "uses").
If you load a gif file using TPicture.LoadFromFile or RVGraphicHandler.LoadFromFile, the most probably, the image is loaded as TdxSmartImage.
You can unregister TdxSmartImage by calling
TPicture.UnregisterGraphicClass(TdxSmartImage);
when the application starts (include dxGDIPlusClasses in "uses").