Event-to-script connections
Event-to-script connections run a script when a certain event takes place. This provides a way to implement or alter VA Smalltalk 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:
1. Once the source event is selected, the mouse pointer changes to Connection mouse pointer
2. Click mouse button 1 on any open area of the free-form surface and select Event to script from the pop-up menu.
3. The resulting window allows you to pick from the list of existing scripts, commonly called methods.
4. Once you've selected a script, select OK to complete the connection.
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 VA Smalltalk scripts, refer to the Visual Programming User Guide.
Last modified date: 07/23/2020