forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


PROGRESS Element flashs. Anyway to fix?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
NathanH
Valued Newbie


Joined: 05 Sep 2001
Posts: 32

PostPosted: Thu Apr 04, 2002 7:56 pm    Post subject: PROGRESS Element flashs. Anyway to fix? Reply with quote

When I run this stripped down code the progress bar flashes as it refreshes. Any way to stop this?

Code:

DIALOG CREATE,Copy,-1,0,283,53,ONTOP,NOMIN
DIALOG ADD,PROGRESS,FILECOPY,30,7,270,15,0
DIALOG SHOW
REPEAT
%I = @succ(%I)
DIALOG SET, FILECOPY,@FADD(@FMUL(2.5,%I),10)
wait .3
UNTIL @EQUAL(%I,40)


Confused Thanks for your help...

Nathan H
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Apr 04, 2002 10:33 pm    Post subject: Reply with quote

Try this:
Code:

DIALOG CREATE,Copy,-1,0,283,53,ONTOP,NOMIN
DIALOG ADD,PROGRESS,FILECOPY,30,7,270,15,0
DIALOG SHOW
REPEAT
%I = @succ(%I)
DIALOG SET, FILECOPY,@FORMAT(@FADD(@FMUL(2.5,%I),10),1.0)
wait .3
UNTIL @EQUAL(%I,40)


When the progress bar comes to a floating point number it sets the progress to 0. VDS doesn't seem to like floating points when it comes to things like that.
@FORMAT() rounds it to a whole number.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
NathanH
Valued Newbie


Joined: 05 Sep 2001
Posts: 32

PostPosted: Thu Apr 04, 2002 10:51 pm    Post subject: Reply with quote

Sheep-

Ya nailed it.

Thank you

Nathan
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group