Gadgets

Mathwright32 Gadgets are used principally for input. These are at the same level of the hierarchy as Display Objects, and are likewise associated with a page. They are also implemented as classes with multiple instances, inheritance, etc. Gadgets have names through which they are identified in MathScript.

What distinguishes Gadgets from Display Objects is the fact that Gadgets may be scripted, and these scripts are activated when the investigator clicks with the left mouse button on them (in reader mode).

The scripts for gadgets are automatically saved with the page on which the gadget appears. They need not be saved to disk (although that is of course always possible). Creating scripts in MathScript is be discussed in some detail under Creating and Editing Scripts . Presently there are 5 types of gadgets in Mathwright32: