Help Contents / GUI programming / ComboBoxes / ComboBoxSelection

ComboBoxSelection
(ComboBoxSelection acombobox)

outputs the selection of the ComboBox acombobox, or if called without an argument, of the ComboBox that processed the last ComboBox event. 

The output value is a zero-based integer, representing the nth choice. 

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]) 


previous: ComboBoxDestroy	next: ComboBoxSetSelection
