FUI group deselection?

Blitz3D Forums/Blitz3D Programming/FUI group deselection?

Is there a way to tell an entire button group to unselect by ID?

I was in a hurry so I wrote this. Don't know if this is natively supported.

Function DeselectButtonID(ID%)
	For B.Button = Each Button
		BH = Handle(B)
		If FUI_SendMessage(BH, M_GETID) = ID Then
			FUI_SendMessage(BH, M_SETSELECTED, False)
		EndIf
	Next
End Function


You can use M_SETINDEX with an index of 0 to deselect all the buttons in a group.

FUI_SendMessage mybutton, M_SETINDEX, 0

Sweetness, thanks.