# Generate Event Handlers

To automatically compile Event Handlers, click the Generate Event Handlers value field in the right pane of the Properties window and select true from the drop down list. The GUI Builder generates these event handlers:

- Button Handlers to specify what action occurs when a button is clicked.
- Activation Handlers to specify what action occurs before a panel displays.
- Double-click Handlers to specify what action occurs when a user double-clicks an item, such as a list item.
- Slider Handlers to specify what action occurs when a user changes the position of a slider control.
- Menu Handlers to create a context menu.

For example, this is how you would generate a button handler:

1. In the Properties window of the button, specify the class name for the button handler in the Action value field.
2. In the Properties window of the file that contains the button, select true from the drop down list in the Generate Event Handlers value field. This will generate any handlers you specify in the file.