User's Guide

Extra practice

Adding the event to the public interface

As extra practice, make your Runner part's runnerChanged event public. Up until now the event has existed but has been private. A part's attributes, actions, and events are private by default, and it is not until they are specified in the Public Interface Editor that they become public and appear on the Connect cascaded menu of the part's pop-up menu.

From a visual part that uses a Runner part, select Edit Part from the Runner part's pop-up menu.

After the Runner part is open, if necessary, select Public Interface Editor symbol to switch to the Public Interface Editor.

In the Public Interface Editor on the Event page, type runnerChanged in the Event entry field and select the Add with defaults push button.

Select Save Part from the File menu and then select Close from the system menu.

Your runnerChanged event is now public in your Runner part. You can use it, for example, in an event-to-script connection.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]