Pemrograman Delphi 7.
Oleh:
Fikri Alami, S.T., M.Sc.
Special Software Center (SSC) – Puskom UNILA
Integrated Development Einveronment (IDE) – Delphi 7.0
Speed Bar
Object Inspector
Menu Bar
Form
Component Pellete
Edit Windows
Special Software Center (SSC) – Puskom UNILA
Componen Pellete
ComboBox
MainMenu Button
ScrollBar
PopupMenu
CheckBox GroupBox
Label RadioButton
RadioGroup
Edit ListBox
Panel
Memo
Special Software Center (SSC) – Puskom UNILA
Object Inspector-Properties
Label1.Caption:=‘SAYA’
Label1.Color:=clBlue;
Edit1.Text:=‘DELPHI’
Memo1.Lines.Add(‘SAYA’)
Special Software Center (SSC) – Puskom UNILA
Object Inspector-Event
procedure TForm1.Button1Click(Sender: TObject);
begin
Label1.Caption:=‘SAYA’
Label1.Color:=clBlue;
Edit1.Text:=‘Delphi’;
Memo1.Lines.Add(‘SAYA’);
end;
Special Software Center (SSC) – Puskom UNILA
Form
Special Software Center (SSC) – Puskom UNILA
Unit
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
MainMenu1: TMainMenu;
PopupMenu1: TPopupMenu;
Label1: TLabel;
Edit1: TEdit;
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
Special Software Center (SSC) – Puskom UNILA
Memulai File Baru
Muncul Form & Unit Kosong
Special Software Center (SSC) – Puskom UNILA
Menyimpan Project
File.pas (File unit)
File.dpr (File Prog. Utama)
File.dfm (File komponen)
Special Software Center (SSC) – Puskom UNILA
Menjalankan Program
Program dieksekusi untuk dilihat
Apakah ada
Kesalahan-kesalahannya atau
tidak
Special Software Center (SSC) – Puskom UNILA
Melihat Daftar Form yg ada
Special Software Center (SSC) – Puskom UNILA
Melihat Daftar Unit yg ada
Special Software Center (SSC) – Puskom UNILA
Latihan - Latihan
Latihan - 1
(FORM INPUT) (FORM OUTPUT)
Latihan – 2
(FORM INPUT) (FORM OUTPUT)
Latihan - 3
(FORM OUTPUT)
Latihan – 4
Klik 2X
Latihan - 5
Klik 2x
Latihan – 6
Klik ini sampai
muncul Kotak dialog
Picture Editor
Latihan – 7
(Form Input) (Form Output)
Latihan – 8
(Form Input) (Form Output)
Latihan – 9
(Form Input) (Form Output)
Latihan – 10
(Form Input) (Form Output)
Latihan – 11
(Form Input) (Form Output)
Latihan – 12
(Form Input) (Form Output)
Latihan – 13
(Form Output)
Latihan – 14
(Form Input)
(Form Output)
Latihan – 15
(Form Input) (Form Output)
SELESAI
Special Software Center (SSC) – Puskom UNILA