progressbar.go
func CreateProgressBar(parent Control, width, height int, scale int) *ProgressBar {
	b := new(ProgressBar)
	b.BaseControl = NewBaseControl()

	if height == AutoSize {
		height = 1
	}
	if width == AutoSize {
		width = 10
	}

	b.SetSize(width, height)
	b.SetConstraints(width, height)
	b.SetTabStop(false)
	b.SetScale(scale)
	b.min = 0
	b.max = 10
	b.direction = Horizontal
	b.parent = parent
	b.align = AlignCenter

	if parent != nil {
		parent.AddChild(b)
	}

	return b
}
func CreateProgressBar(parent Control, width, height int, scale int) *ProgressBar {
	b := new(ProgressBar)
	b.BaseControl = NewBaseControl()

	if height == AutoSize {
		height = 1
	}
	if width == AutoSize {
		width = 10
	}

	b.SetSize(width, height)
	b.SetConstraints(width, height)
	b.SetTabStop(false)
	b.SetScale(scale)
	b.min = 0
	b.max = 10
	b.direction = Horizontal
	b.parent = parent
	b.align = AlignCenter

	if parent != nil {
		parent.AddChild(b)
	}

	return b
}
/*
NewProgressBar creates a new ProgressBar.
parent - is container that keeps the control.
width and heigth - are minimal size of the control.
scale - the way of scaling the control when the parent is resized. Use DoNotScale constant if the
control should keep its original size.
*/