FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Is possible animated gifs in dialogs
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Is possible animated gifs in dialogs
Posted: Thu Jun 13, 2013 06:26 PM

How?

Thanks in advance.

Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Is possible animated gifs in dialogs
Posted: Thu Jun 13, 2013 07:30 PM

I try this but the gif do not animate if i use NOWAIT in dialog

DEFINE DIALOG oAnima RESOURCE "GIFPROC" Title "Aguarde, inutilizando numeração..."
ACTIVATE DIALOG oAnima ON INIT BuildGif( oAnima ) NOWAIT CENTERED

....

Static function BuildGif( oAnima )

TGif():New( oAnima, "Processando.gif", 1, 1 )

return .t.

Thanks.

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Is possible animated gifs in dialogs
Posted: Fri Jun 14, 2013 07:17 AM
My sample works fine.
I'm still working on a TRANSPARENT-test.





Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Is possible animated gifs in dialogs
Posted: Fri Jun 14, 2013 12:02 PM

Great Job ukoenig, do you know how I can fix the problem? I want to create a dialog with a animated gif like "processing" but if I use nowait the gif dont work.

Thanks.

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Is possible animated gifs in dialogs
Posted: Fri Jun 14, 2013 12:20 PM
The download with a Dialog NOWAIT - test

Download
http://www.pflegeplus.com/fw_downloads/anigif.zip



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Is possible animated gifs in dialogs
Posted: Fri Jun 14, 2013 01:34 PM

Thanks but not work for me, after a dialog i need to call this dll function and the gift stay static.

cStat = o:InutilizaNroCT(siglaWS, siglaUF, tipoAmbiente, nome,;
versao, @msgDados, @msgRetWS, @msgResultado, @procInut,;
cUF, Ano, CNPJ, modelo, serie, nroCTeInicial,;
nroCTeFinal, justificativa, proxy, usuario, senha, licenca)

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Is possible animated gifs in dialogs
Posted: Fri Jun 14, 2013 02:43 PM

I think the reason will be,
the dialog doesn't have the focus anymore.
The Gif belongs to the dialog. The animated Gif will stop.
I will add a button to the sample calling another action, to test it.

Best regards
Uwe :?:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Is possible animated gifs in dialogs
Posted: Fri Jun 14, 2013 02:45 PM
ukoenig wrote:I think the reason will be,
the dialog doesn't have the focus anymore.
The Gif belongs to the dialog. The animated Gif will stop.

Best regards
Uwe :-)


I think too, do you know a way to show a animated message ou image in this especific case?

Thanks.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Is possible animated gifs in dialogs
Posted: Fri Jun 14, 2013 02:57 PM
I added a Alert and the Gif is still running



opening another dialog the Gif in dialog 1 is still running.



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Is possible animated gifs in dialogs
Posted: Fri Jun 14, 2013 07:14 PM
ukoenig wrote:I added a Alert and the Gif is still running



opening another dialog the Gif in dialog 1 is still running.



Best Regards
Uwe :-)


I try to put msginfo("test") after ACTIVATE DIALOG oDlg CENTERED ON INIT BuildGif(oDlg) NOWAIT and the animate runs ok, but when i call a dll function animation stop. This dll call makes a conection with a webservice. Any idea?

Thanks.

Continue the discussion