<< Click to Display Table of Contents >> Navigation: Appendix > HTTP Interface > Webbrowser with WPTools |
Although WPTools 8 is not meant to replace a specialized HTML component, You can build a pretty decent HTML viewer with it.
For animated GIFs you first need "GifImage", a free GIF library. Please see unit wpObj_Image.PAS fro more infos and how to activate the GIF support.
You then need a timer on the form and with it You call
procedure TWPWebBrowser.GIFTimerTimer(Sender: TObject);
begin
WPRichText1.RefreshAniImages;
end;
Don't forget to set the ViewOption "wpUseOwnDoubleBuffer"
WPRichText1.ViewOptions := WPRichText1.ViewOptions + [wpUseOwnDoubleBuffer];