
Purdue University Calumet Department of Electrical and Computer
Engineering Technology ECET 455 C++ Object Oriented Programming
Page 1 of 3
LECTURE_00
Task Definition:
The form as the object is used and its property CAPTION is being modified (changed)
and the event is mouse click anywhere on the Form.
Detailed Procedures & Explanatory Notes:
NOTE: pay particular attention to this procedure as the following labs will not go
this much detailed.
1) Open the Borland Builder.
2) An empty Form is always presented (the object).
3) Let us explore the form
4) You can click the Run button of the tool bar or hit F9 \ to execute the program.
5) Click Run button.
6) A Full blown Window opens up. You have compiled a true Windows Application
Program, with Minimize, Maximize and Close buttons. This would react to these
buttons just like any other windows based GUI program would work.
7) Minimize the application.
8) You discover a window named Unit1.cpp with c++ code, this corresponds to the
code which has gener5ated our application.
9) Maximize the Form.
10) Close the application from FILE->Close ALL.
11) Let us again start another application, by FILE->NEW APPLICATION.
12) A new File is always presented for our immediate use.
13) We have two types of settings, a) Design typesetting b) Run type setting.
14) As we start we are in the design type setting. When we RUN and compile the
application we are in the Run type setting.
15) In the Design typesetting when we are working with the Form, and we are
dropping the objects etc. we are in the Graphical design mode.
16) Hit F12. We see the code window with Unit1.cpp opens. If we work in this
window we are working in the code design mode.
17) F12 toggles between the graphical and code design modes.
18) Right click on the Unit1 code window and click on the Source/Header File(F6).
19) Another window opens up, this is header file for the Unit1.cpp file.
20) Go to VIEW->UNITS->Project1 and then OK.
21) Another Window opens, this has the file Project1.cpp. This has the Winmain()
function, Windows equivalent to main() function, this file starts the application.
These three files Unit1.cpp, Unit1.h, and Project1.cpp are responsible for the
Form1.