progress bar

new topic     » topic index » view thread      » older message » newer message

--=======AVGMAIL-3FD4560407D9=======

------=_NextPart_000_000A_01C3BDD4.5C7E3FC0

Im using this syntax to display my progress bar;

setScrollPos( ProgressBar29,  curpos )
setText(LText28, sprintf("%d%% (%d)",
                     {floor(100*curpos/currange[2]),curpos}))

this is in procedure Window1_onActivate (integer self, integer event, sequence
params)

The progress bar displays in text format eg: 56%(56)
How do I get the progress bar to fill instead.

If I move the 
setScrollPos( ProgressBar29,  curpos )
setText(LText28, sprintf("%d%% (%d)",
                     {floor(100*curpos/currange[2]),curpos}))
to after 
WinMain( Window1,Normal )

Then it works but I'd rather have it in
Window1_onActivate (integer self, integer event, sequence params)

tu!




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.548 / Virus Database: 341 - Release Date: 5/12/03
------=_NextPart_000_000A_01C3BDD4.5C7E3FC0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Im using this syntax to display my progress 
bar;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>setScrollPos( ProgressBar29,&nbsp; curpos 
)<BR>setText(LText28, sprintf("%d%% 
(%d)",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{floor(100*curpos/currange[2]),curpos}))</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>this is in&nbsp;procedure Window1_onActivate 
(integer self, integer event, sequence params)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The progress bar displays in text format eg: 
56%(56)</FONT></DIV>
<DIV><FONT face=Arial size=2>How do I get the progress bar to fill 
instead.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I move the 
<DIV><FONT face=Arial size=2>setScrollPos( ProgressBar29,&nbsp; curpos 
)<BR>setText(LText28, sprintf("%d%% 
(%d)",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{floor(100*curpos/currange[2]),curpos}))</FONT></DIV>
<DIV>to after </DIV>
<DIV>WinMain( Window1,Normal )</DIV>
<DIV>&nbsp;</DIV>
<DIV>Then it works but I'd rather have it in</DIV>
<DIV>Window1_onActivate (integer self, integer event, sequence params)</DIV>
<DIV>&nbsp;</DIV>
<DIV>tu!</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG 
anti-virus system (<A 
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.548 /

------=_NextPart_000_000A_01C3BDD4.5C7E3FC0--
--=======AVGMAIL-3FD4560407D9=======
Content-Type: text/plain; x-avg=cert; charset=iso-8859-2
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Description: "AVG certification"

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.548 / Virus Database: 341 - Release Date: 5/12/03

--=======AVGMAIL-3FD4560407D9=======--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu