Testing the ClickIn and ClickOut Events

You have defined the ClickIn and ClickOut events and implemented the code to fire the events. Now you can use Test Container to test them.

To test the ClickIn and ClickOut events

  1. On the Tools menu, click ActiveX Control Test Container.

  2. On the Edit menu, click Insert New Control.

    The Insert Control dialog box appears.

  3. From the list box, select Circ Control.

  4. Click OK to close the Insert Control dialog box and insert the control into Test Container.

  5. On the Options menu, select Logging and make sure that event information is being routed to a file or window.

  6. Position the mouse within the circle and click the left mouse button.

    A ClickIn entry is added to the Event Log list, and the x and y mouse coordinates are shown.

  7. Position the mouse outside the circle and click the left mouse button.

    A ClickOut entry is added to the Event Log list. Notice that no arguments are shown because none were defined for this event.

When you have finished, close Test Container.