ico2ani is a function that creates ANI files (animated cursors) from ICO or CUR files
Has three parameters:
- lcAni (in) string, Name of the resulted (ANI) file
- laIcons (in) array passed by reference, array containing fully qualified source files (icons or cursors)
- lnDelay (in, optional) integer, the time in 1/60 seconds each image will be displayed
- laSeq (in, optional) 2 dimensional array of integers
column 1: the order in which frames are displayed (first frame is frame number 0)
column 2: time in 1/60 sec each step is displayed (speed of animation)
The function creates the RIFF (ANI) file from the ICO / CUR files enlisted in laIcons
Next is the function, along with a test code.
[code Foxpro]* Code for testing purpose
CLEAR RESOURCES
CLEAR ALL
LOCAL laIcons[8],laIcons2[4]
SET SAFETY OFF
* create an animated cursor from 8 ICONS and set this to the form
laIcons[1] = HOME(4)+"Icons\Elements\MOON01.ICO"
laIcons[2] = HOME(4)+"Icons\Elements\MOON02.ICO"
laIcons[3] = HOME(4)+"Icons\Elements\MOON03.ICO"
laIcons[4] = HOME(4)+"Icons\Elements\MOON04.ICO"
laIcons[5] = HOME(4)+"Icons\Elements\MOON05.ICO"
laIcons[6] = HOME(4)+"Icons\Elements\MOON06.ICO"
laIcons[7] = HOME(4)+"Icons\Elements\MOON07.ICO"
laIcons[8] = HOME(4)+"Icons\Elements\MOON08.ICO"
lcAni = ico2ani("mm.ani",@laIcons,15)
* Create another animated cursor from 4 static CURSORS and set this to the optiongroup
laIcons2[1] = HOME(4)+"Cursors\H_WE.CUR"
laIcons2[2] = HOME(4)+"Cursors\H_NW.CUR"
laIcons2[3] = HOME(4)+"Cursors\H_NS.CUR"
laIcons2[4] = HOME(4)+"Cursors\H_NW.CUR"
lcAni = ico2ani("hh.ani",@laIcons2,15)
* Create the demo form with an optiongroup
PUBLIC ofrm
ofrm = CREATEOBJECT("form")
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.