Help Contents / GUI programming / ChoiceBoxes / ChoiceBoxOnSelect

ChoiceBoxOnSelect achoicebox commands

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

Example: 

	cb=(ChoiceBox [][MyChoiceBox] 
	[	[String 1] 
		[and a second string] 
		[and the last string] 
	] 
	[	(show "|MyChoiceBox| ChoiceBoxSelection) 
	]) 
	ChoiceBoxOnSelect cb [pr ChoiceBoxSelection] 


previous: ChoiceBoxOnKeyUp	next: ChoiceBoxEnable
