ctrlutil.go
func DeactivateControls(parent Control) {
	for _, ctrl := range parent.Children() {
		if ctrl.Active() {
			ctrl.SetActive(false)
			ctrl.ProcessEvent(Event{Type: EventActivate, X: 0})
		}

		DeactivateControls(ctrl)
	}
}
func DeactivateControls(parent Control) {
	for _, ctrl := range parent.Children() {
		if ctrl.Active() {
			ctrl.SetActive(false)
			ctrl.ProcessEvent(Event{Type: EventActivate, X: 0})
		}

		DeactivateControls(ctrl)
	}
}
func DeactivateControls ( parent Control ) { for _ , ctrl := range parent . Children ( ) { if ctrl . Active ( ) { ctrl . SetActive ( false ) ctrl . ProcessEvent ( Event { Type : EventActivate , X : 0 } ) } DeactivateControls ( ctrl ) } }
// DeactivateControls makes all children of parent inactive
DeactivateControls makes all children of parent inactive