Sets the current position/value of a progress bar control.
Takes gizmo (Int) and value (Int).
Returns 1 on success, 0 if gizmo not found.
BGI GUI
Parameters & Returns
Parameters
gizmoInt
valueInt
Returns
Int
Quick Summary
Sets the current position/value of a progress bar control.
Takes gizmo (Int) and value (Int).
Returns 1 on success, 0 if gizmo not found.
Technical Exegesis...
Sets the current position/value of a progress bar control. Searches gizmoMap for the gizmo ID. Sends PBM_SETPOS message to the progress bar HWND with the value parameter. Returns 1 on success, 0 if gizmo not found.
This function updates the visual fill level of the progress bar. The value should be within the progress bar's range (default 0-100, set during creation with PBM_SETRANGE). PBM_SETPOS is the Windows message for setting progress bar position. Values outside the range are clamped to min/max.
Sets the current position/value of a progress bar control. Searches gizmoMap for the gizmo ID. Sends PBM_SETPOS message to the progress bar HWND with the value parameter. Returns 1 on success, 0 if gizmo not found.
This function updates the visual fill level of the progress bar. The value should be within the progress bar's range (default 0-100, set during creation with PBM_SETRANGE). PBM_SETPOS is the Windows message for setting progress bar position. Values outside the range are clamped to min/max. The progress bar visually updates to reflect the new position (fill amount). Use for showing operation progress, loading status, or completion percentages. Common pattern: loop through task steps, incrementing value after each step.