29
Pemrograman Delphi 7.0 Oleh: Fikri Alami, S.T., M.Sc. Special Software Center (SSC) – Puskom UNILA

Tutorial Delphi 7

Embed Size (px)

Citation preview

Page 1: Tutorial Delphi 7

Pem

rogr

aman

Del

phi 7

.0

Ole

h:

Fikr

i Ala

mi,

S.T.

, M.S

c.

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 2: Tutorial Delphi 7

Inte

grat

ed D

evel

opm

ent E

inve

ronm

ent (

IDE)

–D

elph

i 7.0

Men

u B

ar

Form

Edi

t Win

dow

s

Com

pone

nt P

elle

te

Spee

d B

arO

bjec

t Ins

pect

or

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 3: Tutorial Delphi 7

Com

pone

n Pe

llete

Mai

nMen

u

Popu

pMen

u

Labe

l Edit

Mem

oBut

ton

Com

boB

ox

Scro

llBar Gro

upB

oxC

heck

Box

Rad

ioB

utto

nR

adio

Gro

up

List

Box

Pane

l

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 4: Tutorial Delphi 7

Obj

ect I

nspe

ctor

-Pro

pert

ies

Labe

l1.C

aptio

n:=‘

SAY

A’

Labe

l1.C

olor

:=cl

Blu

e;

Edit1

.Tex

t:=‘D

ELPH

I’

Mem

o1.L

ines

.Add

(‘SA

YA

’)

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 5: Tutorial Delphi 7

Obj

ect I

nspe

ctor

-Eve

nt

proc

edur

e T

Form

1.B

utto

n1C

lick(

Sen

der:

TO

bjec

t);

begi

n Labe

l1.C

apti

on:=

‘SA

YA

Labe

l1.C

olor

:=cl

Blu

e;

Edi

t1.T

ext:

=‘D

elph

i’;

Mem

o1.L

ines

.Add

(‘SA

YA

’);

end;

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 6: Tutorial Delphi 7

Form

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 7: Tutorial Delphi 7

Uni

t

unit

Uni

t1;

inte

rfac

e

uses Win

dow

s, M

essa

ges,

Sys

Uti

ls, V

aria

nts,

Cla

sses

, Gra

phic

s,

Con

trol

s, F

orm

s,

Dia

logs

;

type TFo

rm1

= cl

ass(

TFo

rm)

Mai

nMen

u1: T

Mai

nMen

u;

Pop

upM

enu1

: TP

opup

Men

u;

Labe

l1: T

Labe

l;

Edi

t1: T

Edi

t;

But

ton1

: TB

utto

n;

priv

ate

{ P

riva

te d

ecla

rati

ons

}

publ

ic

{ P

ublic

dec

lara

tion

s }

end;

var Fo

rm1:

TFo

rm1;

impl

emen

tati

on

{$R

*.d

fm}

end.

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 8: Tutorial Delphi 7

Mem

ulai

File

Bar

u

Mun

cul F

orm

& U

nit K

oson

g

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 9: Tutorial Delphi 7

Men

yim

pan

Proj

ect

File

.pas

(Fi

le u

nit)

File

.dpr

(Fi

le P

rog.

Uta

ma)

File

.dfm

(Fi

le k

ompo

nen)

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 10: Tutorial Delphi 7

Men

jala

nkan

Pro

gram

Prog

ram

die

ksek

usi u

ntuk

dili

hat

Apa

kah

ada

Kes

alah

an-k

esal

ahan

nya

atau

tidak

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 11: Tutorial Delphi 7

Mel

ihat

Daf

tar F

orm

yg

ada

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 12: Tutorial Delphi 7

Mel

ihat

Daf

tar U

nit y

g ad

a

Spec

ial S

oftw

are

Cen

ter (

SSC

) –Pu

skom

UN

ILA

Page 13: Tutorial Delphi 7

Latih

an -

Latih

an

Page 14: Tutorial Delphi 7

Latih

an -

1

(FO

RM

INPU

T)(F

OR

M O

UTP

UT)

Page 15: Tutorial Delphi 7

Latih

an –

2

(FO

RM

INPU

T)(F

OR

M O

UTP

UT)

Page 16: Tutorial Delphi 7

Latih

an -

3

(FO

RM

OU

TPU

T)

Page 17: Tutorial Delphi 7

Latih

an –

4

Klik

2X

Page 18: Tutorial Delphi 7

Latih

an -

5 Klik

2x

Page 19: Tutorial Delphi 7

Latih

an –

6

Klik

ini s

ampa

i m

uncu

l Kot

ak d

ialo

g Pi

ctur

e Ed

itor

Page 20: Tutorial Delphi 7

Latih

an –

7

(For

m I

nput

)

(For

m O

utpu

t)

Page 21: Tutorial Delphi 7

Latih

an –

8

(For

m I

nput

)

(For

m O

utpu

t)

Page 22: Tutorial Delphi 7

Latih

an –

9

(For

m I

nput

)

(For

m O

utpu

t)

Page 23: Tutorial Delphi 7

Latih

an –

10

(For

m I

nput

)

(For

m O

utpu

t)

Page 24: Tutorial Delphi 7

Latih

an –

11

(For

m I

nput

)

(For

m O

utpu

t)

Page 25: Tutorial Delphi 7

Latih

an –

12

(For

m I

nput

)

(For

m O

utpu

t)

Page 26: Tutorial Delphi 7

Latih

an –

13

(For

m O

utpu

t)

Page 27: Tutorial Delphi 7

Latih

an –

14

(For

m I

nput

)

(For

m O

utpu

t)

Page 28: Tutorial Delphi 7

Latih

an –

15

(For

m I

nput

)

(For

m O

utpu

t)

Page 29: Tutorial Delphi 7

SELE

SAI

Spec

ial S

oftw

are

Cent

er (

SSC)

–Pu

skom

UN

ILA