StatusBarProgress()

Syntax

StatusBarProgress(#StatusBar, Field, Value [, Appearance [, Min, Max]])
Description
Display a progress bar in the specified 'Field' in the given '#StatusBar'. The 'Value' parameter specifies the current progress (relative to the current minimum and maximum). To update this value simply call this command again with a different value.

'Appearance' is optional and can be used to alter the look of the field with the following values:
  #PB_StatusBar_Raised    : raised borders
  #PB_StatusBar_BorderLess: without border 
The 'Min' and 'Max' parameter specify the boundaries of the progress bar. If they are not specified or have the value #PB_Ignore then the boundaries from a previous call to this command will be used. The default 'Min' and 'Max' for newly created statusbar fields are 0 and 100.

Example:

  If OpenWindow(0, 0, 0, 340, 50, "StatusBarProgress", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget)
    If CreateStatusBar(0, WindowID(0))
      AddStatusBarField(120)
      AddStatusBarField(170)
    EndIf

    StatusBarText(0, 0, "ProgressBar !")
    StatusBarProgress(0, 1, 25)
    
    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

Supported OS

All

<- StatusBarImage() - StatusBar Index - StatusBarText() ->