OnChange

OnChange — attaches an event handler to a point change event.

Syntax

OnChange (sym, fn)
    

Arguments

sym

Any Gamma symbol.

fn

A function or method call.

Returns

A list containing the sym and fn.

Description

This method is a wrapper for the on_change function. In addition to applying that function, it adds this change to the class's _ChangeFunctions list. For more information, please refer to Section 5.3, “Handling Events”.