Control Name: yfgif.ocx
Source address: http://www.sky-walker.com.cn/yefan/sourcecode/yfgif.rar
【Attributes】:
1, gifbkcolor: set background color
【method】:
1, GIFPLAY
'********************************************************** *******
'** function name: GIFPLAY
'* 输 输: Strname (string) - File name
'**: Optional bflags (boolean = true) - play sign
'**: Optional intuselayDelay (Integer = 0) - Continuous Playing Interval
'**: Optional INTDELAY (Integer = 0) - Frame Playback Access
'** output: no
'** function description: Start playing GIF
'********************************************************** *******
2, GIFSTOP
'********************************************************** *******
'** function name: GIFSTOP
'** → no
'** output: no
'** function description: Stop playing GIF
'********************************************************** *******
3, gifrestart '************************************************************** **********
'** function name: gifrestart
'** → no
'** output: no
'** function description: restart playback
'********************************************************** *******
4, GIFFRAME
'********************************************************** *******
'** function name: GIFFRAME
'** input: optional frameflag (boolean = true) - True Display Start Frame
'** input: false display end frame
'**: Optional Num (Integer = 0) - the serial number of the frame
'** output: no
'** function description: Play specified frame
'********************************************************** *******
5, Getframenum
'********************************************************** *******
'** function name: getFramenum
'** → no
'** output: (long) - Return frame number
'** function description: Return frame number
'********************************************************** *******【event】:
1, click () click
2, Mousemove (Button As Integer, Shift As Integer, x as single, y as single)
'mobile
3, mouseeleave () 'Leaving the event
4, MouseDown (Button As Integer, Shift As Integer, x as single, y as single)
'Mouse press
5, Mouseup (Button as Integer, Shift As Integer, x as single, y as single)
'Mouse is lifted