radio.go
func CreateRadio(parent Control, width int, title string, scale int) *Radio {
	c := new(Radio)
	c.BaseControl = NewBaseControl()

	if width == AutoSize {
		width = xs.Len(title) + 4
	}

	c.parent = parent

	c.SetSize(width, 1) // TODO: only one line heigth is supported at that moment
	c.SetConstraints(width, 1)
	c.SetTitle(title)
	c.SetTabStop(true)
	c.SetScale(scale)

	c.onChange = nil

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

	return c
}
func CreateRadio(parent Control, width int, title string, scale int) *Radio {
	c := new(Radio)
	c.BaseControl = NewBaseControl()

	if width == AutoSize {
		width = xs.Len(title) + 4
	}

	c.parent = parent

	c.SetSize(width, 1) // TODO: only one line heigth is supported at that moment
	c.SetConstraints(width, 1)
	c.SetTitle(title)
	c.SetTabStop(true)
	c.SetScale(scale)

	c.onChange = nil

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

	return c
}
/*
NewRadio creates a new radio button.
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.
width - is minimal width of the control.
title - radio title.
scale - the way of scaling the control when the parent is resized. Use DoNotScale constant if the
control should keep its original size.
*/