Animated gif as a process indicator.
Posted: Wed Feb 08, 2023 8:31 pm
Based on Rao's "Transparent Window topic" I was trying to show a animated gif to be used as a processing/progress meter, so that people see the computer is processing data.
It won't work
Somebody with more succes ?
It won't work

Code: Select all | Expand
#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