Creating, copying, editing, or deleting event handlers

In WinStudio, event handlers are objects specific to a form that supplement, alter, or cancel the default event-handling behavior of WinStudio. You create and name event handlers, which execute when an event matching the name of the event handler is generated. The event can be generated by WinStudio as the user interacts with a form, or it can be generated programmatically by the developer.

To create, copy, edit, or delete event handlers for a form:

  1. With the form open and in Design Mode, from the Edit menu, select Event Handlers.

    The Event Handlers dialog box lists any event handlers created for the current form.

  2. Perform one of these sets of actions:
    • To add an event handler, click New. Specify the event for which you are creating an event handler, the sequence of the event handler, and the response type of the event handler.
    • To copy an event handler, select the one you want and click Copy. Then specify a unique Name for the new event handler and make any other specifications you need.
    • To edit an event handler, select the one you want and click Edit. Then adjust whatever specifications you need to.
    • To delete an event handler, select the one you want and click Delete. When prompted, confirm the deletion.
相关主题