ComboBox UI where item must be selected?

gui

#1

Hey all, just tried to add an item to my combo box with an itemID of 0 and hit the assertion newItemId != 0. I see that an item identifier of 0 indicates that nothing is selected in the combo box.

Is there a dropdown UI where there must be something selected? I’m trying to match up to an enumeration of specific “mode” cases. It’s not an optional parameter.


#2

I can see that you can just immediately set something as selected but just wanted to see if there was a UI where it’s technically impossible to not have anything selected. Once a ComboBox item is selected, it can’t be unselected by the user, right?


#3

That’s right.