FUI group deselection?

Blitz3D Forums/Blitz3D Programming/FUI group deselection?

poopla(Posted 2004) [#1]
Is there a way to tell an entire button group to unselect by ID?


poopla(Posted 2004) [#2]
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



Odds On(Posted 2004) [#3]
You can use M_SETINDEX with an index of 0 to deselect all the buttons in a group.

FUI_SendMessage mybutton, M_SETINDEX, 0


poopla(Posted 2004) [#4]
Sweetness, thanks.