Is possible animated gifs in dialogs

Is possible animated gifs in dialogs

Postby Wanderson » Thu Jun 13, 2013 6:26 pm

How?

Thanks in advance.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Is possible animated gifs in dialogs

Postby Wanderson » Thu Jun 13, 2013 7: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.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Is possible animated gifs in dialogs

Postby ukoenig » Fri Jun 14, 2013 7:17 am

My sample works fine.
I'm still working on a TRANSPARENT-test.

Image

Image

Best Regards
Uwe :lol:
Last edited by ukoenig on Fri Jun 14, 2013 1:02 pm, edited 1 time in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Is possible animated gifs in dialogs

Postby Wanderson » 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.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Is possible animated gifs in dialogs

Postby ukoenig » Fri Jun 14, 2013 12:20 pm

The download with a Dialog NOWAIT - test

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

Image

Best Regards
Uwe :lol:
Last edited by ukoenig on Fri Jun 14, 2013 2:58 pm, edited 1 time in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Is possible animated gifs in dialogs

Postby Wanderson » Fri Jun 14, 2013 1: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)
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Is possible animated gifs in dialogs

Postby ukoenig » Fri Jun 14, 2013 2: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Is possible animated gifs in dialogs

Postby Wanderson » Fri Jun 14, 2013 2: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.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Is possible animated gifs in dialogs

Postby ukoenig » Fri Jun 14, 2013 2:57 pm

I added a Alert and the Gif is still running

Image

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

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Is possible animated gifs in dialogs

Postby Wanderson » Fri Jun 14, 2013 7:14 pm

ukoenig wrote:I added a Alert and the Gif is still running

Image

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

Image

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.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests