Project #2 Object-Oriented Programming
DUE: In Class September 12, 2001 or by September 19, 2001
DESCRIPTION: This is a small programming exercise to go with Lecture #3.Your primary task will be to familiarize yourself with the concepts of object-oriented programming.
STEPS
1. Download the Microsoft ActiveX Control Pad from http://www.cisdept.csupomona.edu/hwang/cis451/activex_ole/dhacp.htm or Look for setuppad.exe in the LocalizationProjects folder on the F: Drive.
2. Install the ActiveX Control Pad
3. Find the two following files on the F: drive in the same folder as above: Localize-Project-2.htm and Localize-Project-2.alx.  Create a new folder on the C: drive of your computer and call it LocalizationProjects and drag these two files into it.
4. Double-click on the Localize-Project-2.htm file. What do you see?
5. Sub-Assignment #1: Now double-click on the Localize-Project-2.alx file. This should cause the ActiveX Control Pad to open. You should see 4 objects on the screen. What are they? Remember that objects have properties that can be set. How can we set the properties of these objects manually? Change both the caption on the command button and the caption of the title label that appears at the top, and explain how you did it.
6. Sub-Assignment #2: Now, right click on one of the objects and choose the option Script Wizard. A screen will appear divided into 3 panes. Look for the name of the command button (this name is the same as the ID property--see above). There will be a plus sign next to the name, click on the plus sign and a list of events will be listed. Choose the click event. Note that object-oriented programming code will appear in the bottom pane. Notice that what is being specified there (in JavaScript) is what will happen if the button is clicked. What is the program going to do? Which other object will be affected when the button is clicked? What properties will be changed? Change the message (caption) of the affected object from "Hello!" to some other message. Click OK and return to the main ActiveX screen. Go to the File Menu and save.
7. In the Internet Explorer screen, refresh the page and click the command button again. What happened?
8. What is the internationalization / localization issue here?

DELIVERABLES:  
Sub-Assignment #1: Answer the questions posed and change both the specified objects.

Sub-Assignment #2: Perform the tasks specified.

Email to me a copy of the altered Localize-Project-2.alx file.