Creates a progress bar for showing task completion.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
BGI GUI
Parameters & Returns
Parameters
xInt
yInt
widthInt
heightInt
parentWinInt
Returns
Int
Quick Summary
Creates a progress bar for showing task completion.
Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int).
Returns gizmo ID on success, 0 if parent not found.
Technical Exegesis...
Creates a progress bar control for visualizing task completion or progress. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using PROGRESS_CLASS with WS_CHILD | WS_VISIBLE style. Initializes range to 0-100 with PBM_SETRANGE, sets position to 0 with PBM_SETPOS. Creates CGizmo with GIZMO_PROGRESSBAR type, stores position, dimensions, state (visible=true, enabled=true). Returns gizmo ID on success, 0 if parent not found.
Creates a progress bar control for visualizing task completion or progress. Searches gizmoMap for parent HWND. Handles scroll panels. Auto-increments gizmoIDCount. Creates using PROGRESS_CLASS with WS_CHILD | WS_VISIBLE style. Initializes range to 0-100 with PBM_SETRANGE, sets position to 0 with PBM_SETPOS. Creates CGizmo with GIZMO_PROGRESSBAR type, stores position, dimensions, state (visible=true, enabled=true). Returns gizmo ID on success, 0 if parent not found.
Progress bars visually indicate completion percentage with a filled bar. Use bgiSetProgressBarGizmoValue to update progress (0-100 by default). The bar fills from left to right as value increases. Common for file downloads, installations, long operations, or any task with measurable progress. Progress bars don't generate user events - they're display-only. Set to 100 for full bar, 0 for empty. Update frequently during operations for smooth animation.