Application Builder Tools > The Events Branch > The Events Node

The Events Node
The Events node () is the top node under which you can add Event nodes to define events. In the Settings window for this node, you can add the following events:
Events
From the On startup list, select a method that runs before the application window opens. It is therefore not possible to call a plot, for example, or other user-interface related code (for such methods, you can use an On load event for forms). A possible use is to set up some special settings for the application. To add a local method for this event, click the Create Local Method button ().
From the About to shutdown list, select a method that runs before the application closes. You can use it to clear or remove some files, for example. To add a local method for this event, click the Create Local Method button (). The method you refer to can return a Boolean. When it does, and the return value is false, the shutdown will be canceled.