PVGadgets_ProgressBar (BarID,ImageId,x,y,w,h,Progress,Shadow,BColor,FColor1,FColor2 [,Flag])
Previous  Top  Next

Create/Update a PVGadgets ProgressBar.

Use:
PVGadgets_ProgressBar(#Gadget,#Image,10,10,100,20,0,1,$000000,$0000FF,$00FFFF,#PB_Image_Border)


Progress
0 - 100 (representing %)  

Shadow
#NoShadow - no shadow on number  
#Shadow - shadow on number  
#NoNumber - no number  

BColor
$0 - $FFFFFF (RGB values of background color)  
#SystemColor - Use Background Color of Form  

FColor1
$0 - $FFFFFF (RGB values of foreground color)  

FColor2
$0 - $FFFFFF (RGB values of foreground color)  

Flag (optional)
#NoBorder - no border  
#FlatBorder - flat border  
#SunkenBorder - sunken border  



·Once this Gadget has been created, you can set x,y,w,h to 0 as they are not needed.  
·Setting FColor1 different from FColor2 will cause the color of the bar to fade from one color to the next.  





Example:

#Gadget=1
#Image=1

If OpenWindow(0,0,0,200,100,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Demo")
 
PVGadgets_ProgressBar(#Gadget,#Image,10,40,170,20,0,1,$000000,$0000FF,$00FFFF,#SunkenBorder)  
 
 
For tmp=0 To 100  
PVGadgets_ProgressBar(#Gadget,#Image,0,0,0,0,tmp,1,$000000,$0000FF,$00FFFF)  
Delay(30)  
Next  
EndIf