KBButton (subclass of KBObject)

On Click (onclick)

Script routine to be invoked when the button is clicked. The routine takes no arguments; this will be the button.

On Toggle (ontoggle)

Script routine to be invoked when the button is toggled. The routine takes on argument, the toggle state; this will be the button.