This class version uses Gui, Add, Custom instead of CreateWindowEx to create the gif control.
Usage:
Create an AniGIF control either by AniGIF_Add() or New AniGIF().
The usage is same as Gui Add, except an additional Link parameter at the end (optional). Examples:
Code: Select all
AniGIF_Add("xm w200 h200 Center BackGroundRed", "test.gif", "http://autohotkey.com")
gif2 := AniGIF_Add("xm", "test2.gif") ; Omit w and h to autosize the control
gif2.SetBkColor(0xff00ff)
gif2.LoadGifFromFile("another.gif")
Gui, Show, w400
- LoadGifFromFile(FileName)
- UnloadGif()
- Zoom(bZoom := true) ; bZoom -- TRUE = Zoom In by 10%, FALSE = Zoom Out by 10%
- SetBkColor(BkColor) ; BkColor -- Color Name or RGB value
- SetHyperlink(Link)