Add an event-handler script to a layout from the Build tab
- Last UpdatedDec 06, 2024
- 2 minute read
To add an event-handler script to a layout from the Build tab
-
Select the pane that contains the app or control that you are scripting.
-
Select Properties grid and scroll to the bottom of the properties list.
-
If necessary, expand the Event Handlers section to show Available Events.
-
To add a script to an event, click on Click to Add Event...
-
The list of public public events and methods contained in the app or control is shown.
-
Select the event name for which you want to add a script. After you select the event name, it is shown in bold type in the list, and listed below the Click to Add Event... option.

-
Switch to the Script tab. The new Event Handler script that you just added is listed alphabetically, by name of app and event, under Event Handler Scripts in the left column of the editor.
The first line shows the name of the app, the second line shows the event, and the third line shows the number of lines in the script.
