Help Contents / GUI programming / ComboBoxes / ComboBoxSetChoices

ComboBoxSetChoices acombobox choices

Command to set the contents of the ComboBox acombobox to choices. 

choices must be a list of items, whose texts will be the choices in the ComboBox. 

Example: 

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


previous: ComboBoxSetSelection	next: ComboBoxAppend
