NEAREASTUNIVERSIdocs.neu.edu.tr › library › 6245514900.pdf · neareastuniversi ·...

Preview:

Citation preview

NEAR EAST UNIVERSI

· FACULTY OF ECONOMICS ANDADMINISTRATIVE SCIENCES

DEPARTMENT OF COMPUTERINFORMATION SYSTEMS

2007/2008 FALL TERMCIS 200

(Graduation Project)

Film&Music Center Automation System

Submitted To: Department of C.I.SSubmitted By: UGUR KURU(20040588)

Lefkoşa2008

1

CONTENTS

1. ACKNOWLEDGEMENTS 3

2. ABSTRACT 4

3. INTRODUCTION 5

4. DESIGN OF THE SYSTEM• Explanation 6-8• Database Design 9-14

5. USER MANUAL -• User Guidlines 15 • User Flow Charts 16-26

6. REFERENCES 27

APPENDIX I• Screen Outputs 28-35

APPENDIX II• Source Code 36-94

2

ACKNOWLEDGEMENTS

I want to thnak to;

My instructors Dr.Yalçın AKÇALI and Miss.Nadire ÇAVUŞ andAssoc.Prof.Dr.ilham Huseynov for their support in completion of myproject.

My friend Mustafa Güler,Burak Martonaltı and Uğur Ersan for histechnical and psychological contribution and support to conclude theproject.

Also thanks to:My family for providing me with financial support while

preparing the projet and their psychological support in all parts oflife by providing me comfort and the necessary conditions todevelop myself and educate in high level

3

ABSTRACT

I chose "Delphi Programming Language" for my CIS 200 graduationproject that causes by; programming languges that be visual , have aneasy syntax , using speaking english is very to ease this programminglanguage.In addition to identifying data types , special functions andprocedures to ease and after as times as long using again them is veryeasy. These days "Delphi" improving software to enable in leadingwindows and linux , machintosh sections that is advancedprogramming languages what to takes lead one of the programminglanguages and to prove itself in these area.there are lots of componentsabout delphi i web base and these components to enable us thatwritting flexible programmes too rapidly.I used these components formy project and i believe to be a successful.Delphi creates a flexiblearea to entirety assembler for user and to provide working high levellanguages depenence.I will explain that necessary things to workingdelphi in introductio section.

4

\

INTRODUCTION

The minimum requirements of the system are as follow;

Intel Pentium III processor550 MHz.128 MB of RAM14" Monitor30 Gb HarddiskMicrosoft Windows 2000LG CD-ROM CRD 8552BDAVIDom 9102-Based PCI Fast Ethernet Adapter

The recommended requirements of the system as follow;

Intel Pentium IV processor800 MHz256MB of RAM60 GB Harddisk17'' MonitorMicrosoft Windows XP ProfessionalLG CD-ROM CRD 8552BDAVIDom 9102-Based PCI Fast Ethernet Adapter

I used Delphi programming language for writing this projectand Ms Access 2003 database for keeping the data and maintainingit.

Besides, to be able to run this program , Delphi has installshieldexpress wizard that encodes the program and gives the executionof program to the user.

5

DESIGN OF THE SYSTEM

Explanation:

I'm using password section for protect un-authorized person andprotect for all information in program.Customer,supplier,sellingprocess,product informations and other process accessing form mainmenu section and to organize all procedure.For ex: delete,update,editand other porcess.You watching most popular (I think) films trailer in"Wateh Film Trailer" section.You get information aboutfilms,actors,directors and many information see "IMDB" section.Ithink, you have a question. What is .the DELPHI 7 ? I 'm answeringnow;

Object Pascal is an object oriented derivative of Pascal mostlyknown as the primary programming language of Borland Delphi. It isalso known as the Delphi programming language when describing thedialect used by Borland Delphi.

Borland used the name "Object Pascal" for the programminglanguage in the first versions of Borland Delphi, but later renamed itto the "Delphi programming language". However, compilers thatclaim to be Object Pascal compatible are often trying to be compatiblewith Delphi source code.

Borland sells integrated development environments (IDEs) thatcompile the Delphi programming language to Microsoft Windows, theMicrosoft .NET Framework and Linux. The open source Free Pascalproject allows the language to be compiled for Linux, Mac OS X,Win64, Windows CE, and others

Borland Delphi (now a product of Borland's subsidiary,CodeGear) is a software development package created by Borland.The eleventh and latest version, Delphi 2007 supports the Delphiprogramming language (Object Pascal) and C++ for the 32 bitMicrosoft Windows platform, as well as Delphi and C# for theMicrosoft .NET platform.

6

Delphi's most popular use is the development of desktop andenterprise database applications, but as a general-purposedevelopment tool it is capable of, and is used for, most types ofdevelopment projects.

The Delphi product is distributed as various suites: Personal,Professional, Enterprise (formerly Client/Server) and Architect.

-Advantages-Delphi exhibits the following advantages:

Rapid Application Development (RAD)Based on a well-designed language - high-level and strongly typed,with low-level escapes for experts (McConnell 1993:49).A large community on Usenet and the web (e.g.news://newsgroups.borland.com and Borland's web access toDelphi newsgroups),Can compile to a single executable, simplifying distribution andreducing DLL versioning issues.Many VCL (Visual Component Library) and third-partycomponents (usually available with full source code) and tools(documentation, debug tools, etc.)Quick optimizing compiler and ability to use assembler codeMultiple platform native code from the same source code

High level of source compatibility between versions CrossKylix -a third-party toolkit which allows you to compile native Kylix/Linuxapplications from inside the Windows Delphi IDE, hence easilyenabling dual-platform development and development.CrossFPC - a sister project to CrossKylix, which enables you to cross­compile your Windows Delphi applications to multi-platform targets -supported by the Free Pascal compiler - without ever leaving theDelphi IDE. Currently CrossFPC is in a closed beta test, onlyavailable to members of the development team. Class helpers tobridge functionality available natively in the Delphi RTL.

The language's object orientation features only class- andinterface-based polymorphism

7

Delphi 2005, Delphi 2006 and Delphi 2007 all support advancedrefactoring features such Method Extraction, etc.

-Disadvantages-Limited cross-platform capability for Delphi itself. A

reluctance to break any code has led to some convoluted languagedesign choices, and orthogonality and predictability have suffered.The newer versions of Delphi have suffered some stability issues

8

Database Design

Database Name: MusicFilın.ındb

~ Database tables and relationships show as above pages;

9

T""" T"""

-~.~·.,--,

f II

'~

,,,,- ,,,_w c;,;;;2, I

..c CJ)Co +-' cuQ)

, s::::ı-a: I ,- Q)CJ)cu..c cu+-' cuo

USER MANUAL

User Guidlines :

On Main Menu

Customer Information : Click here to see the customers.

Products Information: Click here to see products.

Selling Process: Click here to do selling process.

Supplier Information : Click here to see suppliers.

Internet Movie Database: Click here to see information movie on web. Watch Film Trailer : Click here to see the most popular film trailer. Reports: Click here to see reports

About Programmer : Click here to see information about myself.

About Programmer : Click here to see information about my project.

15

User Flow Charts :

16

Eco~O)o~o,o...-Cl)Cl)(])

Q.

(.)

o

<(

.•....(/)

"O Q)ı... ::Jo ı...

C 3: I-"O

O) Cl)ı... o Cl)t:H o

_J co ..,., C

co 3: o o, co•••••• Cl) .•.... Q) O)(/) Cl) .Y.. .c co

co (.) .•....o, ·- C"ı...

Ü Q) I-.•....Cuı

Co+-' cucu +-'E cu

Cl) oı... ı...o Q) ~.•... E ı...:::::s C cuC - o "'C Cl)t:H m

ı... +-' "'C

ııı H mH o,Q) Cl)

cu ~ E :::::s ~Ü Ü "'C o....., C o ~ Q) "'C ci5(/) ·- +-' ~ Ü z - cu Cl)

~:::::s o Ü Q)Ü ..c ..c

(/) +-'ı...Q)

ı...+-' Q)C +-'CUJ UJ

co,-

+-'(.):::J"'C o~o,"'C "'C <(

co+-'coo

Cf) Cf) c"+-' +-' co::J Ü ÜC ::J ::J "O Cf)tH© "O "O

"O ~H~H o,co ~ o o ~ı.... ı.... Ü "O o+-' C o, o, ~ Q) "O U) Cl) ·- ı.... Ü z <(co Q) 3: ·-

~ +-' o o Q)C ..c ..cuı Cl) +-'ı....

Q)+-'Cuı

O),--

co+Jcoo

~ C'Q) coCl.

"O CJ)"O OOH~t:H-H ~H CL ~

Q) Q)co ~ :J :J (.) "O

+J C Cf) Cf) .Y. Q) "O

Cf) ·- ~ 3: (.) z <(o o Q)..c ..cCf) +J

~ Q)+JCuı

·­-a.a.:::JCJ)'"'O'"'O<(

oC\J

en+,,I (.):,

"'Oo,.__o,..c(.),.__ctıCl)

Cf)..•...•(.):J

'"Co:.....a..so..cCf)

Cl)

ICJ)

~I I E~co

z:..... ..•...•tH ©

(.) C

co E :J co'"C..•.... o o O)Cf) ..•..•• :..... co

CJ) a.. ~:JÜ co I-

:.....Cl)..•...•Cuı

o.o..•...•Cf)

,-C\J

~Q)--Cl.Cl.:::J

(f)

..c(.)~~Q)

(f)

lı...(l)

Q.Q.:J

CJ)~ o..cCJ)

Q.o.•...•CJ)

(l)

ICl)

o E~co-C z- lı...

lı... (l) Ct:H wco E Q.co

.•.... o Q.O)

CJ) .•...• :J coCl) CJ) e-:JÜ co I-

lı...(l).•...•Cw

NN

II!

,_Q)

Eo••••••Cl):::JÜ..c(.),_~Q)

I ~(J) (1)

Eo

I 00 lô::J o_,

I I Ü lf) s C')

_,C\Jos:,;;, I I en-:,,._

•••

(1)

E I en

~I I(U

~z~

~ (1)t:H w E~ E oCf) o +-'

+-' enen ::J::J ÜÜ (U

~(1)+-'CUJ

+-'(.)::::,

"'Co~o.Q)+-'Q)-Q)o

"O

Q).•....•Q)Q)o

Q.o.•....•Cl)

en~

Io -Q)o C"+- .•....•zC Q) ·-ccstH:: Q)

O)ccs Ü o ccs.•..... ::J

l:::

~Cl) "O

~o Ü I-),...o, Ü

o.o.:J

Cf)Q)+-'Q)-Q)o

Cf)

~I ,o -Q)

o C'+- +..ıC Q) z co-tH~ Q)

O)co . Q) o '+- co+..ı - -Cf) o, l .::ı:. C"o,Ü I-::::::;

Cf) Ü

I.{)C\J

~(])

Eo+-'Cl):JÜ(])+-'(])-(])o

~Ho..+-' o (l) +-'(l) Cf)o

en

~I 121

~

tH~ (l) oco (l)

(l)z C·-

.... E oco

Cf) o

1::::

O)

+-' ~co

en Ü ~::::, ·-Ü Ü

r-

(ON

REFERENCES

Programs:Delphi 7Ms Access 2003AAA LogoThe Logo Creator 5.0

Web Site:www .programlama.com

www .delphi3000.com

www .delphiturk.com

www .delphiturkiye.com

www.film.gen.tr

www.sinemalarim.com

Books:

BALKAN Ezel, Borlan Delphi 7 .O ,Seçkin Yayıncılık San. ve Tic.A.Ş. , Ocak-2006

PALA Zeydin,Borland Delphi 7 Uygulama Geliştirme Rehberi 34Konuda Delphi 7,Türkmen Kitabevi,2003

PALA Zeydin,24 Derste Access 2003, Türkmen Kitabevi,2004

KURNAZ Sefer,Veri Yapıları ve Algoritma Temelleri,PapatyaYayıncılık,2004

KÖSEOGLU Kerem,Programcılık Mantığı,Pusula Yayınları,Temmuz-2005

27

APPENDIX I

Screen Outputs:

MAIN PAGE(Figurel)CUSTOMER INFORMATION(Figure 2)PRODUCT INFORMATION (Figure 3)SUPPLIER INFORMATION (Figure 4)SELLING PROCESS (Figure 5)REPORTS (Figure 6)WATCH FILM TRAILER(Figure 7)INTERNET MOVIE DATABASE(Figure 8)

28

C\JQ)ı...:::JO)

LL

O)C\J

l

i i IN N N

o('I')

t"i

E j ~ Q,

~ ~eıı;:·"'1"'

~ 11N

"Oı-.~ro

.~

ı... '6 "Oro

] '?cN

"'CX)"Cl

~,...

zlıı +I .Qe • .::ııı:

'Ô ! z ~ 'QH

I.\! I .;Q ı:Z.q/ +QI

.~.ı::

Alo..

ıh

L() N...•

I

Ct)Q)ı....

I ::J:r;O)·-LL

Iffl

(OQ) C")~ C"):::::,O)

LL

·t/JI;)%.. ·.:

•• itiI: il·. ' ; Jj

:ıi. [Tl'··....' ...ı:ı.·•·.·....·.··.··.·.·· ...·.·.·· ..···•.·•.·! •t.1111•il •,s' -.· ...;· II ; ı

Ia1-iı

1.ıt&

coQ) ıoı.... Cf):JO)

LJ..

#APPENDIX II#Source Codes:

Unitl . pas(Password)

unit Unitl;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, Buttons, jpeg, ExtCtrls;

typeTForml = class(TForm)Editl: TEdit;BitBtnl: TBitBtn;BitBtn2: TBitBtn;Label2: TLabel;Timerl: TTimer;Imagel: Tlmage;procedure BitBtnlClick(Sender: TObject);procedure BitBtn2Click(Sender: TObject);procedure Timerl Timer(Sender: TObject);procedure FormCreate(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);

private{ Private declarations }

public{ Public declarations }

end·'varForml: TForml;

implementationuses Unit2;{$R *.dfm}

36

procedure TForml.BitBtnlClick(Sender: TObject);beginif editl.Text='uur84' thenbeginshowmessage('Password Accepted');forml.hide;form.2.show;endelseshowmessage('WRONG PASSWORD!! !TRY AGAIN');end·'

procedure TForml .BitBtn2Click(Sender: TObject);beginclose;end·'

procedure TForml.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

procedure TForml .FormCreate(Sender: TObject);beginforml .Caption:=('***P AS S WORD***');end·'

procedure TForml .FormClose(Sender: TObject; var Action:TCloseAction);varx:integer;begin

37

x:=messagedlg('Do Want to Exit toProgram',mtwarning,[mbyes,mbno],0);if x=mrno thenaction: =canoneelseend·'end.

Unit2.pas(Main Menu)

unit Unit2;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, Buttons, ComCtrls, ExtCtrls, jpeg;

typeTForm2 = class(TForm)Labell: TLabel;BitBtnl: TBitBtn;BitBtn2: TBitBtn;BitBtn3: TBitBtn;BitBtn4: TBitBtn;BitBtn6: TBitBtn;DateTimePicker 1: TDateTimePicker;Imagel: Tlmage;Timer 1: TTimer;BitBtn5: TBitBtn;BitBtn7: TBitBtn;BitBtn8: TBitBtn;BitBtn9: TBitBtn;BitBtnlO: TBitBtn;procedure BitBtn 1 Click(Sender: Tübject);

38

procedure BitBtn2Click(Sender: TObject);procedure BitBtn3Click(Sender: TObject);procedure BitBtn4Click(Sender: TObject):procedure BitBtn5Click(Sender: TObject);procedure BitBtn6Click(Sender: TObject);procedure FormCreate(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure Timerl Timer(Sender: TObject);procedure BitBtn7Click(Sender: TObject);procedure BitBtn8Click(Sender: TObject);procedure BitBtn9Click(Sender: TObject);procedure BitBtnlOClick(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varForm2: TForm2;

implementationuses Unit3, Unit4, Unit5, Unit6, Unit7, Unitl, Unit8, Unit9, Unitlü,Unit20, Unit22;

{$R *.dfm}

procedure TForm2.BitBtn1Click(Sender: TObject);beginform2.Hide;form3.Show;end·'

procedure TForm2.BitBtn2Click(Sender: TObject);beginform2.Hide;form4.show;end·'

39

procedure TForm2.BitBtn3Click(Sender: TObject);beginform2.Hide;form5.Show;end·'

procedure TForm2.BitBtn4Click(Sender: TObject);beginform2.Hide;form6.show;end·'

procedure TForm2.BitBtn5Click(Sender: TObject);beginform2.Hide;form7 .show;end·'

procedure TForm2.BitBtn6Click(Sender: TObject);beginforml .close;end·'

procedure TForm2.FormCreate(Sender: TObject);beginform2.Caption:=('***M A I N***M EN U***');datetimepickerl .Date'Timer=now;end·'

procedure TForm2.FormClose(Sender: TObject; var Action:TCloseAction);

40

varz:integer;beginz:=messagedlg('Do Want to Exit toProgram' ,mtwarning,[mbyes,mbno ],O);if z=mrno thenaction.ecanorıeelseend·'

procedure TForm2.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-1 )+CAPTION[ 1];end·'

procedure TForm2.BitBtn7Click(Sender: TObject);beginform2.hide;form8. show;end·'

procedure TForm2.BitBtn8Click(Sender: TObject);beginform2.hide;form22.show;end·'

procedure TForm2.BitBtn9Click(Sender: TObject);beginform2.Hide;formlü.show;end·'

41

procedure TForm.2.BitBtnlOClick(Sender: TObject);beginform.2.Hide;form.20.show;end·'end.

Unit3. pas( Customer Information)

unit Unit3;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, Buttons, Grids, DBGrids, ExtCtrls, DBCtrls,

Mask, DB,ADODB, ComCtrls, jpeg, OleCtnrs, RpDefine, RpCon, RpConDS;

typeTForm3 = class(TForm)DateTimePickerl: TDateTimePicker;Label8: TLabel;OpenDialog 1: TOpenDialog;Timer 1: TTimer;Imagel: Tlmage;GroupBoxl: TGroupBox;Label12: TLabel;Labell: TLabel;Label2: TLabel;Label3: TLabel;Label4: TLabel;Label5: TLabel;Label6: TLabel;Label7: TLabel;Label9: TLabel;

42

DBEditl: TDBEdit;DBEdit2: TDBEdit;DBEdit3: TDBEdit;DBEdit4: TDBEdit;DBEdit5: TDBEdit;DBEdit6: TDBEdit;DBEdit7: TDBEdit;DBEdit8: TDBEdit;BitBtn3: TBitBtn;BitBtn4: TBitBtn;BitBtn5: TBitBtn;BitBtn6: TBitBtn;BitBtn7: TBitBtn;BitBtn8: TBitBtn;GroupBox2: TGroupBox;DBGridl: TDBGrid;Labell O: TLabel;Editl: TEdit;BitBtn2: TBitBtn;DBGrid2: TDBGrid;ADOConnectionl: TADOConnection;ADOTable 1: TADOTable;Dataxource 1: TDataSource;AD0Queryl: TAD0Query;DataSource2: TDataSource;procedure BitBtnlClick(Sender: TObject);procedure FormCreate(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure Timerl Timer(Sender: TObject);procedure DBEditlClick(Sender: TObject);procedure BitBtn4Click(Sender: TObject);procedure BitBtn5Click(Sender: TObject);procedure BitBtn8Click(Sender: TObject);procedure BitBtn7Click(Sender: TObject);procedure BitBtn6Click(Sender: TObject);procedure BitBtn3Click(Sender: TObject);procedure BitBtn2Click(Sender: TObject);

private{ Private declarations }

43

public{ Public declarations }

end·'varForm3: TForm3;

implementationuses Unit2;{$R *.dfm}

procedure TForm3.BitBtn1Click(Sender: TObject);beginForm3.close;form2.show;end·'

procedure TForm3.FormCreate(Sender: TObject);beginform3.Caption:=('***C U S TOMER ***INF ORM AT I ON***');datetimepickerl .DateTime:=now;editl.Text:=' ';end·'

procedure TForm3.FormClose(Sender: TObject; var Action:TCloseAction);beginform2.Show;end·'

procedure TForm3.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

44

procedure TForm3.DBEdit1Click(Sender: TObject);begindbeditl.Text := intToStr(ADOTablel.RecordCount + l);end;

procedure TForm3.BitBtn4Click(Sender: TObject);beginadotable 1 .Next;end·'

procedure TForm3.BitBtn5Click(Sender: TObject);beginadotable 1 .Prior;end·'

procedure TForm3.BitBtn8Click(Sender: TObject);vara:word;begina:=messagedlg('Do You Want to Delete ThisRecord?',mtwarning,[mbyes,mbno],O);if a=mrYes Thenadotable 1 .Delete;end·'

procedure TForm3.BitBtn7Click(Sender: TObject);begindbeditl.Text := intToStr(ADOTablel.RecordCount + l);adotable 1 .Insert;end·'

procedure TForm3.BitBtn6Click(Sender: TObject);begin

45

adotable 1 .Edit;end·'procedure TForm3.BitBtn3Click(Sender: Tübject);beginadotable 1.UpdateRecord;end·'

procedure TForm3.BitBtn2Click(Sender: Tübject);beginwith adoqueryl do

beginclose;sqI.Clear;sql.Add('select * from customer');sql.Add('where customer_name="'+editl.text+"");execsql;open;

end·'end·'end.

Unit4. pas(Product Information)

unit Unit4;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, Buttons, Grids, DBGrids, ExtCtrls, DBCtrls,

Mask,ComCtrls, DB, ADODB, jpeg;

typeTForm4 = class(TForm)

46

DateTimePickerl: TDateTimePicker;Imagel: Tlrnage;Label3: TLabel;Timerl: TTimer;DBimagel: TDBimage;BitBtn2: TBitBtn;OpenDialog 1: TOpenDialog;GroupBoxl: TGroupBox;Label5: TLabel;Label6: TLabel;Label13: TLabel;DBRadioGroupl: TDBRadioGroup;Label7: TLabel;Label9: TLabel;Labell 1: TLabel;GroupBox2: TGroupBox;Labell: TLabel;DBEdit4: TDBEdit;Label2: TLabcl;DBEdit5: TDBEdit;Label4: TLabel;DBEdit6: TDBEdit;Label8: TLabel;Label12: TLabel;DBEdit9: TDBEdit;DBGridl: TDBGrid;DBEdit8: TDBEdit;BitBtn3: TBitBtn;BitBtn4: TBitBtn;BitBtn5: TBitBtn;BitBtn6: TBitBtn;BitBtn7: TBitBtn;BitBtn8: TBitBtn;GroupBox3: TGroupfsox;Label14: TLabel:Editl: TEdit;DBGrid2: TDBGrid;BitBtn9: TBitBtn;ADOConnection 1: TADOConnection;

47

ADOTable 1: TADOTable;DataSourcel: TDataSource;ADOQueryl: TADOQuery;DataSource2: TDataSource;DBEditl: TDBEdit;DBComboBoxl: TDBComboBox;DBComboBox2: TDBComboBox;DBEdit3: TDBEdit;DBEdit7: TDBEdit;DBComboBox3: TDBComboBox;procedure BitBtnlClick(Sender: TObject);procedure DBRadioGroup 1 Change(Sender: TObject);procedure FormCreate(Sender: TObject):procedure DBComboBox3Click(Sender: TObject);procedure DBComboBox3Change(Sender: TObject);procedure FormClose(Sender: TObjecı; var Action: TCloseAction);procedure Timerl Timer(Sender: TObject):procedure BitBtn2Click(Sender: TObject);procedure DBEditlClick(Sender: TObject);procedure BitBtn3Click(Sender: TObject);procedure BitBtn4Click(Sender: TObject);procedure BitBtn7Click(Sender: TObject);procedure BitBtn6Click(Sender: TObject);procedure BitBtn5Click(Sender: TObject):procedure BitBtn8Click(Sender: TObject);procedure BitBtn9Click(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varForm4: TForm4;

implementationuses Unit2;{$R *.dfm

48

procedure TForm4.BitBtn1Click(Sender: TObject);beginForm4.Hide;Form2.Show;end·'

procedure TForm4.DBRadioGroup1Change(Sender: TObject);begindbcombobox2.Visible:=false;end·'

procedure TForm4.FormCreate(Sender: TObject);begineditl.Text:=' ';form4.Caption:=('***P ROD UC T S***I NF ORM AT I ON***');datetimepickerl .Date'Timc.enow;if dbcombobox3.Text = ('Film') thenbegindbcombobox 1.visible:=true;dbedit7 .visible.etrue;label7 .Visible.etrue;dbcombobox2.visible:=false;label9 .Visible:=false;end·'if dbcombobox3.text = ('Music') thenbegindbcombobox 1.visibler=false;dbedit7. visible:=false;label7. visible.efalse;dbcombobox2.visible:=true;label9. Visible:=true;end·'end·'

49

procedure TForm4.DBComboBox3Click(Sender: TObject);beginif dbcombobox3. Text = ('Film') thenbegindbcombobox lvisibler=tnıc;dbedit7. visible.etrue;dbcombobox2. visible: =false;label9. Visible: =false;label7. Visible.etrue;end·'if dbcombobox3.text = ('Music') thenbegindbcombobox 1.visibler=false;dbedit7. visible:=false;dbcombobox2.visible:=true;label9. Visible.etrue;label7. visible:=false;end·'end·'

procedure TForm4.DBComboBox3Change(Sender: TObject);beginif dbcombobox3. Text = ('Film') thenbegindbcombobox 1 .Enabled:=true;dbedit7 .Enabled.etrue;dbcomboboxz.Enabled.efalse;label9 .Enabled.efalse;labell 1.Enabled:=true;end·'if dbcombobox3.text = ('Music') thenbegindbcombobox 1 .enabled.efalse;dbedit7 .enabled.etrue;dbcombobox2.enabled:=true;labell 1 .Enabled.etrue;end·'end·'

50

procedure TForm4.FormClose(Sender: TObject; var Action:TCloseAction);beginform2.Show;end·'

procedure TForm4.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

procedure TForm4.BitBtn2Click(Sender: TObject);beginopendialog 1 .execute;dbimage 1 .Picture.LoadFromFile( opendialog 1 .FileName);end·'

procedure TForm4.DBEdit1Click(Sender: TObject);begindbeditl.Text := intToStr(ADOTablel.RecordCount + 1);end·'

procedure TForm4.BitBtn3Click(Sender: TObject);beginadotable 1 .Prior;if dbcombobox3.Text = ('Film') thenbegindbcomboboxl .visible.etrue;dbedit7. visible=truc;label7.Visible: =true;dbcombobox2.visible:=false;label9. Visible.efalse;

ı labell 1.Visible:=true;•

51

end·'if dbcombobox3.text = ('Music') thenbegindbcombobox 1.visibleı=false;dbedit7 .visible:=true;dbcombobox2.visible:=true;label9 .Visible:=true;label7. visibler=false;end·'end·'

procedure TForm4.BitBtn4Click(Sender: TObject);beginadotable 1 .Next;if dbcombobox3.Text = ('Film') thenbegindbcombobox 1.visible:=true;dbedit7. visiblc.=true:label7. Visible.etrue;dbcombobox2.visible:=false;label9. Visible:=false;labell lVisiblec=truc:end·'if dbcombobox3.text = ('Music') thenbegindbcombobox 1 .visible:=false;dbedit7 .visible:=true;dbcombobox2.visible:=true;label9 .Visible:=true;label7. visible:=false;end·'end·'

procedure TForm4.BitBtn7Click(Sender: TObject);vare:word;begin

52

e:=messagedlg('Do You Want to Delete ThisRecord?',mtwarning,[mbyes,mbno],0);if e=mr Yes Thenadotable 1 .Delete;end·'

procedure TForm4.BitBtn6Click(Sender: TObject);beginadotable 1 .Insert;dbeditl.Text := intToStr(ADOTablel.RecordCount + l);end·'

procedure TForm4.BitBtn5Click(Sender: TObject);beginadotable 1 .Edit;end·'

procedure TForm4.BitBtn8Click(Sender: TObject);beginadotablel .UpdateRecord;end·'

procedure TForm4.BitBtn9Click(Sender: TObject);beginwith adoqueryl do

beginclose;sql.Clear;sql.Add('select * from products');sql.Add('where product_name="'+editl.text+"");execsql;open;

end·'end·'

53,

end.

Unit5. pas(Selling Process)

unit Unit5;interface

usesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, Buttons, DBCtrls, Grids, DBGrids, ExtCtrls,

Mask, DB,ADODB, ComCtrls, jpeg;

typeTForm5 = class(TForm)Labell: TLabel;GroupBox 1: TGroupBox;Label2: TLabel;Label3: TLabel;DBEditl: TDBEdit;Label4: TLabel;DBEdit3: TDBEdit;DBEdit4: TDBEdit;DBEdit5: TDBEdit;Label5: TLabel;Label6: TLabel;Label7: TLabel;Label8: TLabel;GroupBox2: TGroupBox;Label9: TLabel;LabellO: TLabel;Label 11: TLabel;DBEdit9: TDBEdit;DBEditl 1: TDBEdit;Label13: TLabel;

54

Label14: TLabel;Label15: TLabel;Label18: TLabel;GroupBox3: TGroupBox;Label19: TLabel;DBEditl 3: TDBEdit;Label20: TLabel;DBEdit14: TDBEdit;Label21: TLabel;Label22: TLabel;Label23: TLabel;Label24: TLabel;Label25: TLabel;Label26: TLabel;DBEdit15: TDBEdit;DBEdit16: TDBEdit;DBEditl 7: TDBEdit;DBEdit18: TDBEdit;DBEdit19: TDBEdit;ADOConnection 1: TADOConnection;ADOTable 1: TADOTable;DataSourcel: TDataSource;DBEdit8: TDBEdit;DBEdit21: TDBEdit;DBimagel: TDBimage;Label12: TLabel;BitBtn2: TBitBtn;Timerl: TTimer;DBEdit12: TDBEdit;Label27: TLabel;BitBtnl: TBitBtn;

. DateTimePickerl: TDateTimePicker;BitBtn3: TBitBtn;DBEdit2: TDBEdit;DBLookupComboBox2: TDBLookupComboBox;DBEdit7: TDBEdit;DBLookupComboBoxl: TDBLookupComboBox;DBGridl: TDBGrid;BitBtn4: TBitBtn;

55

BitBtn5: TBitBtn;BitBtn6: TBitBtn;BitBtn7: TBitBtn;BitBtn8: TBitBtn;BitBtn9: TBitBtn;BitBtnlO: TBitBtn;DBEdit6: TDBEdit;GroupBox5: TGroupBox;DBEditlO: TDBEdit;Label16: TLabel;BitBtnl 1: TBitBtn;BitBtn12: TBitBtn;DBEdit20: TDBEdit;DBEdit22: TDBEdit;DBEdit23: TDBEdit;Labell 7: TLabel;Label28: TLabel;Label29: TLabel;AD0Table2: TADOTable;DataSource2: TDataSource;DataSource3: TDataSource;AD0Table3: TADOTable;GroupBox4: TGroupBox;RadioButtonl: TRadioButton;RadioButton2: TRadioButton;procedure BitBtnlClick(Sender: TObject);procedure FormCreate(Sender: TObject);procedure BitBtn2Click(Sender: TObject);procedure Timerl Timer(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure DBEdit13Click(Sender: TObject);procedure DateTimePickerl Change(Sender: TObject);procedure BitBtn3Click(Sender: Tübject);procedure BitBtn4Click(Sender: TObject);procedure BitBtn5Click(Sender: TObject);procedure BitBtn7Click(Sender: TObject);procedure BitBtn6Click(Sender: TObject);procedure BitBtn8Click(Sender: TObject);procedure BitBtn9Click(Sender: TObject);

56

procedure BitBtnlOClick(Sender: 'I'Objccı);procedure RadioButton2Click(Sender: TObject);procedure RadioButtonl Click(Sender: TObjecı):procedure BitBtnl lClick(Sender: TObject);procedure BitBtn12Click(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'

varForm5: TForm5;

implementationuses Unit2, Unit4, Unit3, Unit21;{$R *.dfm}

procedure TForm5 .BitBtnl Click(Sender: TObject);beginform5 .Hide;form3.show;end·'

procedure TForm5.FormCreate(Sender: TObject);begingroupbox5. Visible:=false;form5.Caption:=('***SELLING***PROCESS***');datetimepickerl .Date'Time.enow;end·'

procedure TForm5.BitBtn2Click(Sender: TObject);varvergi.integer;sayi.real;begin

57

dbeditl 7.Text:=inttostr(strtoint( dbeditl 6.Text)*strtoint( dbedit15. Text));sayi:=strtoint(dbeditl 7 .Text)*O.18;vergi:= trunc(sayi);dbeditl 8.text:=inttostr(vergi);dbeditl 9 .text:=inttostr(strtoint( dbeditl 7 .text)+vergi);form4.adotablel .Edit;form4. adotable 1.UpdateRecord;form4.dbedit6.Text:=intToStr(strToint(form4.dbedit6.text)­strToint(dbedit16.text));form4.adotablel .post;if strtoint(dbedit12.Text) < 3 thenshowmessage(' Warnning! ! ! ! Critical Stock Level');end·'

procedure TForm5.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-1 )+CAPTION[ 1];end·'

procedure TForm5 .FormClose(Sender: TObject: var Action:TCloseAction);beginform2.Show;end·'

procedure TForm5 .DBEditl 3Click(Sender: TObject);begindbedit13.Text := intToStr(ADOTablel.RecordCount + l);end·'

procedure TForm5 .DateTimePickerl Change(Sender: TObject);begindbedit 14.Text: =datetostr( datetimepicker 1 .Date);

58

end;

procedure TForm5.BitBtn3Click(Sender: TObject);beginformô.Hide;forma.show:end·'

procedure TForm5.BitBtn4Click(Sender: TObject);beginadotable 1 .Prior;end;

procedure TForm5.BitBtn5Click(Sender: TObject);beginadotable 1 .Next;end·'

procedure TForm5.BitBtn7Click(Sender: TObject);beginadotable 1 .Insert;end·'

procedure TForm5.BitBtn6Click(Sender: TObject);vare.word;begine:=messagedlg('Do You Want to Delete ThisRecord?',mtwarning,[mbyes,mbno],0);if e=mr Yes Thenadotable 1 .Delete;end·'

procedure TForm5.BitBtn8Click(Sender: TObject);

59

beginadotable 1 .Edit;end·'

procedure TForm5.BitBtn9Click(Sender: TObject);beginadotable 1.UpdateRecord;end·'

procedure TForm5.BitBtn10Click(Sender: TObject);beginform21.show;end·'

procedure TForm5 .RadioButton2Click(Sender: TObject);begingroupbox5.Visible:=true;end·'

procedure TForm5.RadioButton1Click(Sender: TObject);begingroupbox5.Visible:=false;

' end·'

procedure TForm5.BitBtnl lClick(Sender: Tübject);varx,y ,z,a:integer;begindbedit23 .Visible.efalse;x:=strtoint(dbedit19.Text);y:=strtoint( dbeditl O.Text);z:=x-y;a:=z div 2;dbedit20.Text:=inttostr(a);

60

I-

dbedit22.Text:=inttostr(a);end·'

procedure TForm5.BitBtn12Click(Sender: TObject);varx,y .z.a.integer;begindbedit23.Visible:=false;x:=strtoint(dbedit19.Text);y:=strtoint( dbeditl O.Text);z.ex-y;a=z div 2;dbedit20.Text:=inttostr(a);dbedit22.Text:=inttostr(a);dbedit23. Text: =inttostr( a)end·'end.

Unit6. pas(Suppl ier Information)

unit Unitô;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, Buttons, Grids, DBGrids, DBCtrls, ExtCtrls,

Mask, DB,ADODB, ComCtrls, jpeg;

typeTForm6 = class(TForm)DateTimePickerl: TDateTimePicker;Image 1: Tlmage;Labell: Tl.abel;

61

Timerl: TTimer;GroupBoxl: TGroupBox;Label2: TLabel;Label3: TLabel;DBEdit2: TDBEdit;DBComboBoxl: TDBComboBox;Label5: TLabel;Labellü: TLabel;DBEdit3: TDBEdit;DBEdit4: TDBEdit;DBEdit5: TDBEdit;DBEdit6: TDBEdit;Label4: TLabel;Label6: TLabel;Label7: TLabel;DBGridl: TDBGrid;BitBtn2: TBitBtn;BitBtn3: TBitBtn;BitBtn4: TBitBtn;BitBtn5: TBitBtn;BitBtn6: TBitBtn;BitBtn7: TBitBtn;GroupBox2: TGroupBox;Edit 1: TEdit;Label9: TLabel;DBGrid2: TDBGrid;BitBtn8: TBitBtn;DataSource 1: TDataSource;ADOConnection 1: TADOConnection;ADOTable 1: TADOTable;ADOQueryl: TADOQuery;DataSource2: TDataSource;DBComboBox2: TDBComboBox;procedure BitBtnlClick(Sender: Tübject);procedure FormCreate(Sender: Tübject);procedure FormClose(Sender: Tübject; var Action: TCloseAction);procedure Timerl Timer(Sender: Tübject);procedure BitBtn2Click(Sender: Tübject);procedure BitBtn3Click(Sender: Tübject);

62

procedure BitBtn4Click(Sender: TObject);procedure BitBtn5Click(Sender: TObject);procedure BitBtn6Click(Sender: TObject);procedure BitBtn7Click(Sender: TObject);procedure BitBtn8Click(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varForm6: TForm6;

implementationuses Unit2;{$R *.dfm}

procedure TForm6.BitBtn1Click(Sender: TObject);beginform6.Hide;form2.show;end·'

procedure TForm6.FormCreate(Sender: TObject);begindatetimepickerl .DateTime:=now;FORM6.Caption:=('***S UPP LIER ***INF ORM AT I ON***');editl.Text:=' ';end·'

procedure TForm6.FormClose(Sender: TObject; var Action:TCloseAction);beginform2.Show;end·'

63

procedure TForm6.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

procedure TForm6.BitBtn2Click(Sender: TObject);beginadotable 1 .Prior;end·'

procedure TForm6.BitBtn3Click(Sender: TObject);beginadotable 1 .Next;end·'

procedure TForm6.BitBtn4Click(Sender: TObject);begindbcombobox2.Text := intToStr(ADOTablel.RecordCount + 1);adotable 1 .Insert;end·'

procedure TForm6.BitBtn5Click(Sender: TObject);varl:word;beginl:=messagedlg('Do You Want to Delete ThisRecord?' ,mtwarning, [mbyes,mbno] ,O);if l=mrYes Thenadotable 1 .Delete;end·'

64

procedure TForm6.BitBtn6Click(Sender: TObject);beginadotable 1 .Edit;end·'

procedure TForm6.BitBtn7Click(Sender: TObject):beginadotable 1.UpdateRecord;end·'

procedure TForm6.BitBtn8Click(Sender: TObject);beginwith adoquery 1 do

beginclose;sqI.Clear;sql.Add('select * from supplier');sql.Add('where supplier_name="'+editl.text+"");execsql;open;

end·'end·'end.

Unit7. pas(About Program)

unit Unit7;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,

65

Dialogs, DB, ADODB, ComCtrls, StdCtrls, DBCtrls, ExtCtrls,Mask, Buttons,

Grids, DBGrids, jpeg;type

TForm7 = class(TForm)Memol: TMemo;Timerl: TTimer;Label 1: TLabel;procedure BitBtnlClick(Sender: TObject);procedure Timerl Timer(Sender: TObject);procedure FormCreate(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);

private{ Private declarations }

public{ Public declarations }

end·'varForm7: TForm7;

implementationuses Unit2, Unit8;{$R *.dfm}

procedure TForm7.BitBtn1Click(Sender: TObject);beginForm7.Hide;form2.show;end·'

procedure TForm7 .Timerl Timer(Sender: Tübject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-1 )+CAPTION[ 1];end·'

procedure TForm7 .FormCreate(Sender: TObject);

66

beginFORM7.Caption:=('*** AB OU T***P ROG RAM***');end·'

procedure TForm7 .FormClose(Sender: TObject; var Action:TCloseAction);beginform2.Show;end·'end.

Unit8. pas(About Programmer)

unit Unit8;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, jpeg, ExtCtrls, Buttons, ComCtrls;

typeTForm8 = class(TForm)Labell: TLabel;Imagel: Tlmage;Memo2: TMemo;Timerl: TTimer;procedure BitBtnlClick(Sender: TObject);procedure FormCreate(Sender: Tübject);procedure Timerl Timer(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);

private{ Private declarations }

public{ Public declarations }

67

end·'varForm8: TForm8;

implementationuses Unit2;{$R *.dfm}

procedure TForm8.BitBtn1Click(Sender: TObject);beginform8 .Hide;;form2.Show;end·'

procedure TForm8.FormCreate(Sender: TObject);beginFORMS.Caption:=('*** AB OU T***P ROG RAMMER***');end·'

procedure TForm8.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

procedure TForm8.FormClose(Sender: TObject; var Action:TCloseAction);beginform2.Show;end·'end.

Unit9. pas(Instalment Process)

68

unit Unit9;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, Buttons, Grids, DBGrids, DB, DBTables, RpRave,RpDefine, RpCon, RpConDS, ADODB, ExtCtrls, Mask, DBCtrls,

ComCtrls;typeTForm9 = class(TForm)DBGridl: TDBGrid;lmagel: Tlmage;Labell: TLabel;Label2: TLabel;Label3: TLabel;Label4: TLabel;Label5: TLabel;GroupBox 1: TGroupBox;Label6: TLabel;Label7: TLabel;Label8: TLabel;Editl: TEdit;Edit2: TEdit;Edit3: TEdit;BitBtn7: TBitBtn;BitBtn8: TBitBtn;BitBtn9: TBitBtn;BitBtnl: TBitBtn;BitBtn2: TBitBtn;BitBtn3: TBitBtn;BitBtn4: TBitBtn;BitBtn5: TBitBtn;BitBtn6: TBitBtn;DBEditl: TDBEdit;DBEdit2: TDBEdit;DBEdit3: TDBEdit;

69

DBEdit4: TDBEdit;DBEdit5: TDBEdit;DataSourcel: TDataSource;ADOConnection 1: TADOConnection;ADOTablel: TADOTable;timer 1: T'I'imer;DBEdit6: TDBEdit;DBEdit7: TDBEdit;DBEdit8: TDBEdit;DateTimePicker 1: TDateTimePicker;procedure BitBtnlClick(Sender: TObject);procedure BitBtn2Click(Sender: TObject);procedure BitBtn3Click(Sender: TObject);procedure BitBtn4Click(Sender: TObject);procedure BitBtn5Click(Sender: TObject);procedure timerl Timer(Sender: TObject);procedure FormCreate(Sender: 'I'Object);procedure FormClose(Sender: TObjecı; var Action: TCloseAction);procedure BitBtn7Click(Sender: TObject);procedure BitBtn8Click(Sender: TObject);procedure BitBtn9Click(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varForm9: TForm9;

implementationuses Unit3, Unit2, Unit7;{$R *.dfm}

procedure TForm9.BitBtn1Click(Sender: TObject);beginadotable 1 .Prior;end·'

70

procedure TForm9.BitBtn2Click(Sender: TObject);beginadotable 1 .Next;end·'

procedure TForm9.BitBtn3Click(Sender: TObject);beginadotable 1 .Edit;end;

procedure TForm9.BitBtn4Click(Sender: TObject);vare:word;begine:=messagedlg('Do You Want to Delete ThisRecord?',mtwarning,[mbyes,mbno],O);if e=mr Yes Thenadotable 1 .Delete;end·'

procedure TForm9.BitBtn5Click(Sender: TObject);beginadotable 1.UpdateRecord;end·'

procedure TForm9.timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

71

pro~edure TForm9 .FormCreate(Sender: TObject)·n~~ın ·form3.Caption:=('***INSTALMENT***PROCESS***');dbedit6.Visible:=false;dbedit7. Visible.efalse;dbedit8.Visible:=false;editl.Text:=";edit2. Text:=";editô.Text.e";end·'

procedure TForm9 .FormClose(Sender: TObject; var Action:TCloseAction);beginform2.show;end·'

procedure TForm9.BitBtn7Click(Sender: TObject);var

~ x,y ,z:integer;~ a:word;

beginx.estrtointt editl .text);z:=strtoint(dbedit6.Text);if x=z thenbeginy:=0;form9 .ADOTable 1 .Edit;

form9 .ADOTable 1.UpdateRecord;form9 .Editl .Text:='Instalment Paid';form9.DBEdit5.Text:=inttostr(y);form9 .ADOTable 1 .Post;endelsea:=messagedlg('Instalment Amount Wrong',mterror,[mbok],O);editl.SetFocus;

end·'

72

procedure TForm9.BitBtn8Click(Sender: TObject);varx,y,z:integer;a:word;beginx.estrtoinu edit2.text);z:=strtoint(dbedit7.Text);if x=z thenbeginy:=0;form9 .ADOTable 1 .Edit;

form9 .ADOTable 1.UpdateRecord;form9 .Editl. Text:='Instalment Paid';form9 .DBEdit7. Text:=inttostr(y);form9 .ADOTable 1 .Post;endelsea:=messagedlg('Instalment Amount Wrong' ,mterror, [mbok],O);editl .SetFocus;

end·'

procedure TForm9.BitBtn9Click(Sender: TObject);varx,y,z:integer;a:word;beginx:=strtoint( edit3. text);z:=strtoint( dbedit8.Text);if x=z thenbeginy:=0;form9 .ADOTablel .Edit;

form9.AD0Table1.UpdateRecord;form9.Editl.Text:='Instalment Paid';form9.DBEdit8.Text:=inttostr(y);form9 .ADOTable 1 .Post;

73

endelsea:=messagedlg('Instalment Amount Wrong',mterror,[mbok],O);editl .SetFocus;

end·'end.

Unit10.pas(Films Trailer)

unit UnitlO;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, StdCtrls, Buttons, ExtCtrls, jpeg, ComCtrls;

typeTForml O = class(TForm)Timerl: TTimer;Imagel: Tlmage;BitBtn3: TBitBtıi;BitBtnl: TBitBtn;BitBtn7: TBitBtn;BitBtn5: TBitBtn;BitBtn8: TBitBtn;BitBtn6: TBitBtn;BitBtn2: TBitBtn;BitBtn4: TBitBtn;Label 1: TLabel;DateTimePickerl: TDateTimePicker;BitBtnlO: TBitBtn;procedure BitBtnlClick(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure BitBtn2Click(Sender: TObject);procedure BitBtn3Click(Sender: TObject);

74

procedure FormCreate(Sender: TObject);procedure Timerl Timer(Sender: TObject);procedure BitBtn4Click(Sender: TObject);procedure BitBtn6Click(Sender: TObject);procedure BitBtn5Click(Sender: TObject);procedure BitBtn7Click(Sender: TObject);procedure BitBtn8Click(Sender: TObject);procedure BitBtn9Click(Sender: TObject);procedure BitBtnlOClick(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varFormlü: TFormlO;

implementationuses Unitl 1, Unit2, Unit12, Unit13, Unit14, Unit15, Unit16, Unitl 7,Unit18,Unit19, Unit22;

{$R *.dfm}

procedure TForml O.BitBtnl Click(Sender: TObject);beginformlü.Hide;forml 1 .show;end·'

procedure TFormlO.FormClose(Sender: TObject; var Action:TCloseAction);beginform2.show;end·'

procedure TForml O.BitBtn2Click(Sender: TObject);begin

75

formlO.Hide;form12.show;end·'

procedure TForml O.BitBtn3Click(Sender: TObject);beginformlü.Hide;form13.show;end·'

procedure TForml O.FormCreate(Sender: TObject);beginformlO.Caption:=('***Films Trailer***');end·'

procedure TFormlO.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-l)+CAPTION[l];end·'

procedure TForml O.BitBtn4Click(Sender: TObject);beginformlü.Hide;form14.show;end·'

procedure TForml O.BitBtn6Click(Sender: TObject);beginformlü.Hide;forml 5. show;end·'

procedure TForml O.BitBtn5Click(Sender: TObject);

76

beginformlü.Hide;forml 6.show;end·'

procedure TForml O.BitBtn7Click(Sender: TObject);beginformlü.Hide;forml 7.show;end·'

procedure TForml O.BitBtn8Click(Sender: TObject);beginformlü.Hide;forml 8.show;end·'

procedure TForml O.BitBtn9Click(Sender: TObject);beginformlü.Hide;form22.showend·'

procedure TForml O.BitBtnl OClick(Sender: TObject);beginformlü.hide;form19.show;end·'end.

Unit 11. pas(Reguimfor a Dream)

77

unit Unitl 1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, OleCtrls, WMPLib_TLB, ExtCtrls;

typeTForml 1 = class(TForm)WindowsMediaPlayer 1: TWindowsMediaPlayer;Timer 1: TTimer;procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure Timerl Timer(Sender: TObject);procedure FormCreate(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varForml 1: TForml 1;

implementationuses UnitlO;{$R *.dfm}

procedure TForml 1 .FormClose(Sender: TObject; var Action:TCloseAction);beginformlO.show;end;

I

>)

>

procedure TForml 1.Timerl Timer(Sender: Tübject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-l)+CAPTION[l];end·'

78

procedure TForml 1 .FormCreate(Sender: TObject);beginforml 1.Caption:=('***Requim For A Dream***');end·'end.

Unitl 2. pas(Deja-Vu)

unit Unit12;interfacusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, OleCtrls, WMPLib_TLB, ExtCtrls;

typeTForml 2 = class(TForm)WindowsMediaPlayerl: TWindowsMediaPlayer;Timerl: TTimer;procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure Timerl Timer(Sender: TObject);procedure FormCreate(Sender: Tübject);

private{ Private declarations }

public{ Public declarations }

end;varForm12: TForm12;

implementationuses UnitlO;{$R *.dfm}

79

procedure TForm12.FormClose(Sender: TObject; var Action:TCloseAction);beginformlü.show;end·'

procedure TForm12.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-1 )+CAPTION[ 1];end·'

procedure TForm12.FormCreate(Sender: TObject);beginform12.Caption:=('***DEJA-VU***');end·'end.

Unitl 3. pas(Resident Evil:Extinction)

unit Unit13;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, OleCtrls, WMPLib_TLB, ExtCtrls;

typeTForml 3 = class(TForm)WindowsMediaPlayer 1: TWindowsMediaPla yer;Timer 1: TTimer;procedure FormClose(Sender: TObject; var Action: TCloseAction);

80

procedure Timerl Timer(Sender: TObject);procedure FormCreate(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varForm13: TForm13;

implementationuses Unitlü;{$R *.dfm}

procedure TForml3.FormClose(Sender: TObject; var Action:TCloseAction);beginformlO.show;end·'

procedure TForm13.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-1 )+CAPTION[ 1];end·'

procedure TForm13.FormCreate(Sender: TObject);beginforml3.Caption:=('***Resident Evil:Extinction***');end·'end.

Unitl 3. pas(Recep İvedik)

81

unit Unit14;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, ExtCtrls, OleCtrls, WMPLib_TLB;

typeTForml 4 = class(TForm)WindowsMediaPlayerl: TWindowsMediaPlayer;Timer 1: TTimer;procedure FormClose(Sender: TObject; var Action: 'I'CloseAction);procedure Timerl Timer(Sender: TObject);procedure FormCreate(Sender: TObject):

private{ Private declarations }

public{ Public declarations }

end;varForm14: TForm14;

implementationuses Unit l O:{$R *.dfm}

procedure TForm14.FormClose(Sender: TObject; var Action:TCloseAction);beginforml Gshow;end·'

procedure TForm14.Timerl Timer(Sender: TObjecı):beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-1 )+CAPTION[ 1];

82

end·'

procedure TForm14.FormCreate(Sender: Tübject);beginform14.Caption:=('***Recep İvedik***');end·'end.

Unit14.pas(Recep İvedik)

unit Unit14;interfaceuses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,Forms,

Dialogs, ExtCtrls, OleCtrls, WMPLib_TLB;type

TForml 4 = class(TForm)WindowsMediaPlayer 1: TWindowsMediaPlayer;Timerl: TTimer;procedure FormClose(Sender: Tübject; var Action: TCloseAction);procedure Timerl Timer(Sender: TObject);procedure FormCreate(Sender: TObject);

private{ Private declarations }

public·{ Public declarations }

end·'

varForm14: TForm14;

implementationuses Unitlü;{$R *.dfm}

83

procedure TForml 4.FormClose(Sender: TObject; var Action:TCloseAction);beginformlü.show;end·'

procedure TForm14.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-l)+CAPTION[l];end·'

procedure TForml 4.FormCreate(Sender: TObject);beginform14.Caption:=('***Recep İvedik***');end·'end.

Unitl 5. pas(300: Sparta)

unit Unit15;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, ExtCtrls, OleCtrls, WMPLib_TLB;

typeTForm15 = class(TForm)WindowsMediaPlayerl: TWindowsMediaPlayer;Timer 1: TTimer;procedure Timerl Timer(Sender: TObject);

84

procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure FormCreate(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end;varForm15: TForm15;

implementationuses Unitlü, Unit!;{$R *.dfm}

procedure TForml5.Timerl Timer(Sender: Tübject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-l)+CAPTION[l];end·'

procedure TForml5.FormClose(Sender: TObject; var Action:TCloseAction);beginformlü.show;end·'

procedure TForml5.FormCreate(Sender: Tübject);beginformlS.Caption:=('***300:Sparta***');end·'end.

Unit 16. pas(Prestige)

85

unit Unitl6;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, ExtCtrls, OleCtrls, WMPLib_TLB;

typeTForml 6 = class(TForm)WindowsMediaPlayerl: TWindowsMediaPlayer;Timerl: TTimer;procedure Timerl Timer(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure FormCreate(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varForm16: TForm16;

implementationuses UnitlO;{$R *.dfm}

procedure TForm16.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-1 )+CAPTION[ 1];end·'

procedure TForml 6.FormClose(Sender: TObject; var Action:TCloseAction);beginformlO.show;end·'

86

procedure TForml 6.FormCreate(Sender: TObject);beginforml 6.Caption:=('** *Prestige***');end·'end.

Unitl 7. pas(Inside Man)

unit Unitl 7;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, ExtCtrls, OleCtrls, WMPLib_TLB;

typeTForml 7 = class(TForm)WindowsMediaPlayer 1: TWindowsMediaPlayer;Timer 1: TTirner;procedure Timerl Timer(Sender: TObject);procedure FormClose(Sender: TObjcct; var Action: 'I'CloseAction);procedure FormCreate(Sender: 'I'Object);

private{ Private declarations }

public{ Public declarations }

end·'var

Forml 7: TForml 7;implementation

87

uses Unitl O;{$R *.dfm}

procedure TForml 7.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

procedure TForml7.FormClose(Sender: TObject; var Action:TCloseAction);beginforml G.show;end;

procedure TForml 7 .FormCreate(Sender: TObject);beginforml 7.Caption:=('***Inside Man***');end;end.

Unitl 8. pas(Hokkabaz)

unit Unitl8;interfaceuses

88

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,Forms,Dialogs, ExtCtrls, OleCtrls, WMPLib_TLB;

typeTForml 8 = class(TForm)WindowsMediaPlayerl: TWindowsMediaPlayer;Timerl: TTimer;procedure Timerl Timer(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure FormCreate(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'varForm18: TForm18;

implementationuses UnitlO, Unitl 7;{$R *.dfm}

procedure TForm18.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

procedure TForml 8.FormClose(Sender: TObject; var Action:TCloseAction);beginformlO.show;end·'

procedure TForml 8.FormCreate(Sender: TObject);beginform 18. Caption:=('** *Hokkabaz***');

89

end·'end.

Unit19.pas(City of God)

unit Unit19;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, ExtCtrls, OleCtrls, WMPLib_TLB;

typeTForml 9 = class(TForm)WindowsMediaPlayerl: TWindowsMediaPlayer;Timer 1: TTimer;procedure Timerl Timer(Sender: TObject):procedure FormCreate(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);

private{ Private declarations }

public{ Public declarations }

end·'varForm19: TForm19;

implementationuses Unitlü;{$R *.dfm}

90

procedure TForm19.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)-1 )+CAPTION[ 1];end·'

procedure TForml 9 .FormCreate(Sender: TObject);beginform19.Caption:=('***City of God***');end·'

procedure TForml 9 .FormClose(Sender: 'I'Object; var Action:TCloseAction);beginforml G.show;end·'end.

Unit20. pas(IMDB)

unit Unit20;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, OleCtrls, SHDocVw, ExtCtrls;

91

typeTForm20 = class(TForm)Timerl: TTimer;WebBrowserl: TWebBrowser;procedure FormClose(Sender: TObject; var Action: TCloseAction);procedure Timerl Timer(Sender: TObject);procedure FormCreate(Sender: TObject);

private{ Private declarations }

public{ Public declarations }

end·'

varForm20: TForm20;

implementationuses Unit2;{$R *.dfm}

procedure TForm20.FormClose(Sender: TObject; var Action:TCloseAction);beginform2.show;end·'

procedure TForm20.Timerl Timer(Sender: TObject);beginCAPTION:=COPY(CAPTION,2,LENGTH(CAPTION)­l)+CAPTION[l];end·'

procedure TForm20.FormCreate(Sender: TObject);beginform20. Caption:=('** *IMDB Online***');trywebbrowser 1 .Navigate('http://www.imdb.com');

92

exceptShowMessage('Doğrulama Sayfasına ulaşamadım');exit;

end·'end;end.

Unit21 . pas(Bill)

unit Unit21;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls,

Forms,Dialogs, ExtCtrls, StdCtrls, Buttons, Mask, DBCtrls;

typeTForm21 = class(TForm)Image I: Tlmage;Image2: Tlmage;BitBtnl: TBitBtn;BitBtn2: TBitBtn;procedure BitBtnlClick(Sender: Tübject);procedure BitBtn2Click(Sender: Tübject);

private{ Private declarations }

public{ Public declarations }

end·'varForm21: TForm21;

implementationuses Unit5;{$R *.dfm}

procedure TForm21.BitBtn1Click(Sender: TObject);

93

beginform21 .Printend·'

procedure TForm21 .BitBtn2Click(Sender: TObject);beginform21 .Hide;form5.show;end·'end.

94

Recommended