ButtonOnClick

HC GUI programming Buttons ButtonOnClick
ButtonDestroy ButtonEnable

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

Reference:

ButtonDestroy ButtonEnable