Skip to content

CreateProgBar

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions
BlitzPlus

CreateProgBar

CreateProgBar:Int32 x:Int32, y:Int32, width:Int32, height:Int32, group:Int32, style:Int32=0
Parameter Mode Type Default Description
x In Int32 required Horizontal position inside the group.
y In Int32 required Vertical position inside the group.
width In Int32 required Width of the bar.
height In Int32 required Height of the bar.
group In Int32 required Window, panel, tabber or canvas that holds it.
style In Int32 0 0, or 65536 to not follow the group when it is resized. Defaults to 0.

Returns: A handle for the progress bar.

Description

Makes a bar that shows how far something got. Set how full it is with UpdateProgBar.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Progress", 10, 10, 300, 120, Desktop(), 3)
bar = CreateProgBar(10, 20, 260, 22, win)
done# = 0
Repeat
	e = WaitEvent(300)
	done# = done# + 0.2
	If done# > 1 Then done# = 1
	UpdateProgBar bar, done#
Until e = $803

Media

CreateProgBar

Related Commands

CreateButton, CreateComboBox, CreateHtmlView 〔BlitzLLVM〕, CreateLabel, CreateListBox, CreatePanel, CreateSlider, UpdateProgBar

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally