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

Top  Previous  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

0 - no shadow on number

1 - shadow on number

-1 - no number

 

BColor

$0 - $FFFFFF (RGB values of background color)

-1 - Use Background Color of Form

 

FColor1

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

 

FColor2

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

 

Flag (optional)

0 - no border

1 - flat border

#PB_Image_Border - 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")

If CreateGadgetList(WindowID(0))

PVGadgets_ProgressBar(#Gadget,#Image,10,40,170,20,0,1,$000000,$0000FF,$00FFFF,#PB_Image_Border)

EndIf

 

For tmp=0 To 100

PVGadgets_ProgressBar(#Gadget,#Image,0,0,0,0,tmp,1,$000000,$0000FF,$00FFFF)

Delay(30)

Next

EndIf