Event-to-script connections run a script when a certain event takes place. This provides a way to implement or alter VisualAge application behavior directly through the use of the Smalltalk language. You can create Smalltalk scripts using the Script Editor then connect to it from a part event within the Composition Editor. The default color of this connection type is green. Performing a file save operation when a push button clicked event occurs is an example of the use of an event-to-script connection. In this case, the Smalltalk script contains the logic to save a file to the computer hard disk. As with other connection types, an event-to-script connection is initiated from the source part's Connect choice in the pop-up menu and is terminated as follows:
The connection is drawn between the source part and an icon on the free-form surface representing the script. For more information about how to write and use VisualAge Smalltalk scripts, refer to the VisualAge Smalltalk User's Guide .