ComboBoxRemoveItem

HC GUI programming ComboBoxes ComboBoxRemoveItem
ComboBoxSetItem ComboBoxCount

ComboBoxRemoveItem acombobox index


Command to remove the choice item at position index from the ComboBox acombobox.

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])
ComboBoxRemoveItem cb 1

Reference:

ComboBoxSetItem ComboBoxCount