Help Contents / GUI programming / ComboBoxes / ComboBoxSetValue

ComboBoxSetValue acombobox text

Command to set the text in the edit control of the ComboBox acombobox to text which will be converted to a word first. 

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]) 
	ComboBoxSetValue cb [Hallo World!] 


previous: ComboBoxValue	next: ComboBoxSetBackgroundColor
