label.go
func CreateLabel(parent Control, w, h int, title string, scale int) *Label {
	c := new(Label)
	c.BaseControl = NewBaseControl()

	if w == AutoSize {
		w = xs.Len(title)
	}
	if h == AutoSize {
		h = 1
	}

	c.parent = parent

	c.SetTitle(title)
	c.SetSize(w, h)
	c.SetConstraints(w, h)
	c.SetScale(scale)
	c.tabSkip = true
	c.textDisplay = AlignLeft

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

	return c
}
func CreateLabel(parent Control, w, h int, title string, scale int) *Label {
	c := new(Label)
	c.BaseControl = NewBaseControl()

	if w == AutoSize {
		w = xs.Len(title)
	}
	if h == AutoSize {
		h = 1
	}

	c.parent = parent

	c.SetTitle(title)
	c.SetSize(w, h)
	c.SetConstraints(w, h)
	c.SetScale(scale)
	c.tabSkip = true
	c.textDisplay = AlignLeft

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

	return c
}
func CreateLabel ( parent Control , w , h int , title string , scale int ) * Label { c := new ( Label ) c . BaseControl = NewBaseControl ( ) if w == AutoSize { w = xs . Len ( title ) } if h == AutoSize { h = 1 } c . parent = parent c . SetTitle ( title ) c . SetSize ( w , h ) c . SetConstraints ( w , h ) c . SetScale ( scale ) c . tabSkip = true c . textDisplay = AlignLeft if parent != nil { parent . AddChild ( c ) } return c }
/*
NewLabel creates a new label.
view - is a View that manages the control
parent - is container that keeps the control. The same View can be a view and a parent at the same time.
w and h - are minimal size of the control.
title - is Label title.
scale - the way of scaling the control when the parent is resized. Use DoNotScale constant if the
control should keep its original size.
*/
/ * NewLabel creates a new label . view - is a View that manages the control parent - is container that keeps the control . The same View can be a view and a parent at the same time . w and h - are minimal size of the control . title - is Label title . scale - the way of scaling the control when the parent is resized . Use DoNotScale constant if the control should keep its original size .