It won't work Somebody with more succes ?
- Code: Select all Expand view
- #include "fivewin.ch"
#include "gif.ch"
function Main()
local oDlg, oGif, i
msginfo("Loop start")
animation("ON")
for i = 1 to 300
sleep(1)
next
animation("OFF")
msginfo("Loop done")
return nil
function Animation(cType)
local oDlgA, oGif
if cType = "ON"
DEFINE DIALOG oDlgA SIZE 400, 300 PIXEL ;
STYLE WS_POPUP COLOR CLR_BLACK,RGB(255,254,254)
oDlgA:nSeeThroClr := RGB(255,254,254)
oDlga:bInit := <||
@ 0,140 GIF oGif SIZE 240,260 FILE "..\gifs\halo.gif" OF oDlgA ;
ADJUST ACTION oDlgA:End()
return nil
>
ACTIVATE DIALOG oDlgA CENTERED
else
oDlgA:End()
endif
return nil