ComboBoxSetItem

HC GUI programming ComboBoxes ComboBoxSetItem
ComboBoxAppend ComboBoxRemoveItem

ComboBoxSetItem acombobox index choice


Command to change the item at position index of the ComboBox acombobox to the text of the thing choice.

index must be an integer number index >= 0 and index < (number of choices in the ComboBox).

Example:

cb=(ComboBox [][MyComboBox][Initial string]
	[	[String 1]
		[and a second string]
		[and the last string]
	]
	[	(show "|MyComboBox| ComboBoxSelection)
	]
	[	(pr [change] ComboBoxValue)
	]
	[	v=ComboBoxValue
		(pr [enter] v)
		ComboBoxAppend cb v
	]
	wxCB_simple [-1 -1][300 200])
ComboBoxSetItem cb 1 [Item 1 now]

Reference:

ComboBoxAppend ComboBoxRemoveItem