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
-
On the Tools menu, click ActiveX Control Test Container.
-
On the Edit menu, click Insert New Control.
The Insert Control dialog box appears.
-
From the list box, select Circ Control.
-
Click OK to close the Insert Control dialog box and insert the control into Test Container.
-
On the Options menu, select Logging and make sure that event information is being routed to a file or window.
-
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.
-
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.