Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
=init_therm() &&... initialize it here
=ud_therm(10, 1234)
*... where 10 = % completion, and 1234 is total bytes you
*... want displayed. Can be a FOR loop or whatever
=thermdone() &&... when finished
RETURN
*!*****************************************************************************
*!
*! Procedure: INIT_THERM
*!
*!*****************************************************************************
PROCEDURE init_therm
IF NOT WEXIST("therm")
DEFINE WINDOW therm ;
AT 0.000, 0.000 ;
SIZE 9.889,47.286 ;
TITLE "* Transferring *" ;
FONT "FoxFont", 8 ;
FLOAT ;
CLOSE ;
nominimize ;
SYSTEM ;
COLOR RGB(,,,192,192,192)
MOVE WINDOW therm CENTER
ENDIF ( NOT WEXIST("therm") )
MOVE WINDOW therm CENTER
IF WVISIBLE("therm")
ACTIVATE WINDOW therm SAME
ELSE
ACTIVATE WINDOW therm NOSHOW
ENDIF ( WVISIBLE("therm") )
*
*..... initial box
*
@ 1.667,2.000 SAY "Percent Completed... " ;
FONT "Arial", 10 ;
STYLE "BT"
*
*.... box around bar
*
@ 6.000,1.857 TO 8.111,45.000 ;
PEN 1, 8 ;
COLOR RGB(128,128,128,,,,)
@ 5.111,0.714 TO 9.000,46.143 ;
PEN 1, 8 ;
COLOR RGB(128,128,128,,,,)
@ 5.111,0.714 TO 8.889,0.714 ;
PEN 1, 8 ;
COLOR RGB(255,255,255,255,255,255)
@ 5.111,0.714 TO 5.111,46.000 ;
PEN 1, 8 ;
STYLE "1" ;
COLOR RGB(255,255,255,255,255,255)
@ 6.111,44.857 TO 8.111,44.857 ;
PEN 1, 8 ;
COLOR RGB(255,255,255,255,255,255)
@ 8.000,1.857 TO 8.000,44.857 ;
PEN 1, 8 ;
STYLE "1" ;
COLOR RGB(255,255,255,255,255,255)
IF NOT WVISIBLE("therm")
ACTIVATE WINDOW therm
ENDIF ( NOT WVISIBLE("therm") )
RETURN
*!*****************************************************************************
*!
*! Procedure: UD_THERM
*!
*!*****************************************************************************
PROCEDURE ud_therm
PARAMETERS prcnt, bytes
prcnt = prcnt/100
STORE 42.5 * prcnt TO i
*
*.... Progress bar
*
@ 1.667,2.000 SAY LTRIM(STR(prcnt*100)) + "%" + " Completed, " + ;
LTRIM(STR(bytes)) + ' total bytes.';
FONT "Arial", 10 ;
STYLE "B" ;
COLOR RGB(,,,192,192,192)
@ 6.111,2.000 TO 8.000, 2.2 + i ;
PATTERN 1 ;
PEN 1, 8 ;
COLOR RGB(0,255,255,0,0,255)
@ 6.222, 2.00 + i TO 7.889, 2.00 + i;
PEN 2, 8 ;
STYLE "1" ;
COLOR RGB(0,0,0,0,0,0)
@ 7.778, 2.000 TO 7.778, 2.000 +i;
PEN 2, 8 ;
STYLE "1" ;
COLOR RGB(0,0,0,0,0,0)
RETURN
*!*****************************************************************************
*!
*! Procedure: THERMDONE
*!
*!*****************************************************************************
PROCEDURE thermdone
STORE 42.5 TO i
@ 1.667,2.000 SAY "Percent Completed... 100% " ;
FONT "Arial", 10 ;
STYLE "B" ;
COLOR RGB(,,,192,192,192)
@ 6.111,2.000 TO 8.000, 2.2 + i ;
PATTERN 1 ;
PEN 1, 8 ;
COLOR RGB(0,255,255,0,0,255)
@ 6.222, 2.00 + i TO 7.889, 2.00 + i;
PEN 2, 8 ;
STYLE "1" ;
COLOR RGB(0,0,0,0,0,0)
@ 7.778, 2.000 TO 7.778, 2.000 +i;
PEN 2, 8 ;
STYLE "1" ;
COLOR RGB(0,0,0,0,0,0)
PUSH KEY
ON KEY LABEL ESCAPE *
STORE 0 TO x
x=INKEY(2, "H")
RELEASE x
POP KEY
RELEASE WINDOW therm
RETURN