Working With Forms > Introduction > Running Methods in Form Objects

Running Methods in Form Objects
For some form objects, such as buttons, you can add commands to run when the user clicks the button. Those commands can be a number of predefined commands (such as plotting). For other form objects, such as input fields, you can add methods for events, which occur when the form object gains or loses focus. When you have added a method to run in a form object, the display of the form object in the form window shows the method connection:
Figure 3-5: A Compute button with an indication that it runs a method when the user clicks it.
If the method has a compilation error, the method connection indicator shows a red cross to indicate that it will not be possible to test the button until the compilation error has been corrected: