Help Contents / GUI programming / Buttons / ButtonOnClick

ButtonOnClick abutton instructionlist

sets the onClick event handler of the Button abutton to the commands in the instructionlist. 

Examples: 

	bfd=Button [][Go!][fd 100 updateGraph] 
	ButtonOnClick bfd [fd 10 updateGraph]	;slow motion! 
	ButtonOnClick bfd []	;like disabling the Button 


previous: ButtonDestroy	next: ButtonEnable
