Help Contents / GUI programming / ComboBoxes / ComboBoxOnSelect

ComboBoxOnSelect acombobox commands

Command to set the custom event handler for the select event of the ComboBox acombobox to commands. The select event is generated when the user selects a choice with a mouseclick or a keypress. 

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]) 
	ComboBoxOnSelect cb [pr ComboBoxSelection] 


previous: ComboBoxOnKeyUp	next: ComboBoxOnChange
