Animation not always working

Post Reply
jfdepierre
Posts: 4
Joined: Thu Nov 24, 2005 11:51 am

Animation not always working

Post by jfdepierre »

Dear all,

When I use the oAnimate:CopyFiles() animation as Action in a Dialog, than
the animation works fine when I do an Upload to a server.
When I do a Download from that server my animation starts only after the
Download is finished.


DEFINE DIALOG oDlf RESOURCE "DataToServer"

oAnimate = TAnimate():Redefine( 160, oDlf )

REDEFINE SBUTTON ID 161 OF oDlf ;
Title "Starten";
BORDER ;
ACTION oAnimate:CopyFiles() , DoTheUp(Down)load( oDlf, cUrl, cFile,
cEmaildef, cDomein );
COLORS CLR_WHITE, CLR_RED;
TOOLTIP "Starten"

REDEFINE SBUTTON ID 162 OF oDlf ;
Title "Cancel";
BORDER ;
ACTION oDlf:End();
COLORS CLR_WHITE, CLR_BLUE;
TOOLTIP "Terug"

ACTIVATE DIALOG oDlf

The Action DoTheUp(Down)load starts the Tiptest.prg from
xHB\Samples\Internet\

Can anyone give an indication why the animation does not work during a
download?

Thanks,


Jules de Pierre
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jules,

Try this:

oAnimate:CopyFiles() , SysRefresh(), ...
regards, saludos

Antonio Linares
www.fivetechsoft.com
jfdepierre
Posts: 4
Joined: Thu Nov 24, 2005 11:51 am

Animationnot always working

Post by jfdepierre »

Antonio,

I have tried to implement Sysrefres() on several places.
That helped in other instances, but not here.

Do we have different animations?

Thanks,

Jules de Pierre
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jules,

May we see the source code for Tiptest.prg ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Armando
Posts: 2479
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México
Contact:

An example

Post by Armando »

Antonio:

Where can I found an example of TAnimate class ?

Regards, Armando
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
jfdepierre
Posts: 4
Joined: Thu Nov 24, 2005 11:51 am

Animation not always working

Post by jfdepierre »

I studied the subject and found that uploading goes in intervals and downloading is continous until the end.
So there is no timeslot for an animation.
Post Reply