Understanding form custom events
Note: This
topic presents information about the WinStudio
form event model, as opposed to the Application Event system. The primary
difference between the two is that form events are operational only within
a single form, whereas application events can be used application-wide.
You can create custom form events in three ways:
- You can specify an event name for one or more of a component's events properties (on the Component property sheet toolbar, click the Events button). Most components support a primary event, a data change event, a gain focus event, and a lose focus event. For instance, you might want to generate a custom event when the user clicks a push button. To implement this, you specify the custom event name as the push button's primary event.
- You can create an event handler that has a response type of Generate Event and that specifies a new event name.
- You can create a script that generates an event.
Related topics