Sunday, April 24, 2011

Listing Program

Tampilan Program
Coding program :

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    ComboBox1: TComboBox;
    ComboBox2: TComboBox;
    Label4: TLabel;
    ListBox1: TListBox;
    Label5: TLabel;
    eharga: TEdit;
    GroupBox2: TGroupBox;
    Label7: TLabel;
    RadioButton1: TRadioButton;
    RadioButton2: TRadioButton;
    efasilitas: TEdit;
    GroupBox1: TGroupBox;
    Label6: TLabel;
    CheckBox1: TCheckBox;
    CheckBox2: TCheckBox;
    eminuman: TEdit;
    hitung: TButton;
    GroupBox3: TGroupBox;
    Label8: TLabel;
    Label9: TLabel;
    Label10: TLabel;
    Label11: TLabel;
    etotal: TEdit;
    eubay: TEdit;
    ekembali: TEdit;
    input: TButton;
    keluar: TButton;
    ejumlbel: TEdit;
 procedure ComboBox2Click(Sender: TObject);
    procedure RadioButton1Click(Sender: TObject);
    procedure RadioButton2Click(Sender: TObject);
    procedure CheckBox1Click(Sender: TObject);
    procedure CheckBox2Click(Sender: TObject);
    procedure hitungClick(Sender: TObject);
    procedure ejumlbelKeyPress(Sender: TObject; var Key: Char);
    procedure eubayChange(Sender: TObject);
    procedure keluarClick(Sender: TObject);
    procedure inputClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
a,b,c:real;
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.ComboBox2Click(Sender: TObject);
begin
  listbox1.Clear;
if combobox1.Text = 'sarapan pagi' then
  begin
  if combobox2.Text  ='paket1' then
  begin
  listbox1.Clear;
  listbox1.Items.Add('nasi uduk');
  listbox1.Items.Add('telor');
  listbox1.Items.Add('tempe orek');
  eharga.Text :='5000';
  end
  else
  begin
  listbox1.Clear;
  listbox1.Items.Add('nasi goreng');
  listbox1.Items.Add('telur mata sapi');
  listbox1.Items.Add('kerupuk');
  eharga.Text :='7000';
  end
  end
else
begin
   listbox1.Clear;
  if combobox1.Text = 'makan siang' then
  begin
    if combobox2.Text  ='paket1' then
    begin
  listbox1.Clear;
  listbox1.Items.Add('nasi putih');
  listbox1.Items.Add('ayam bakar');
  listbox1.Items.Add('lalapan');
  eharga.Text :='8000';
  end
  else
  begin
listbox1.Clear;
  listbox1.Items.Add('nasi putih');
  listbox1.Items.Add('rendang');
  listbox1.Items.Add('sayur');
  eharga.Text :='10000';
  end
  end
end;
 end;

procedure TForm1.RadioButton1Click(Sender: TObject);
begin
efasilitas.Text :='5000';
end;

procedure TForm1.RadioButton2Click(Sender: TObject);
begin
efasilitas.Text :='0';
end;

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
if checkbox1.Checked then
a:=3000
else
a:=0;
end;

procedure TForm1.CheckBox2Click(Sender: TObject);
begin
if checkbox2.Checked then
b:=1000
else
b:=0;
end;

procedure TForm1.hitungClick(Sender: TObject);
begin
 c:=a+b;
 eminuman.Text :=floattostr(c);
end;

procedure TForm1.ejumlbelKeyPress(Sender: TObject; var Key: Char);
begin
if key=#13 then
etotal.Text :=floattostr(strtofloat(eharga.Text)+strtofloat(efasilitas.Text)+strtofloat(eminuman.Text));
end;

procedure TForm1.eubayChange(Sender: TObject);
begin
ekembali.Text :=currtostr(strtocurr(eubay.Text)-strtocurr(etotal.Text ));

end;

procedure TForm1.keluarClick(Sender: TObject);
begin
close;
end;

procedure TForm1.inputClick(Sender: TObject);
begin
combobox1.Text :='pilih jenis makanan';
combobox2.Text :='pilih paket';
listbox1.Clear ;
eharga.Text :='0';
radiobutton1.Checked := false;
radiobutton2.Checked :=false;
efasilitas.Text :='0';
checkbox1.Checked :=false;
checkbox2.Checked :=false;
eminuman.Text :='0';
ejumlbel.Text :='0';
etotal.Text :='0';
eubay.Text :='0';
ekembali.Text :='0';

end;
procedure TForm3.FormActivate(Sender: TObject);
begin
edit1.Text:='Galih Rakasiwi';
edit8.Text:='12.4H.03';
edit9.Text:='12094545';
end;
end.

Saturday, April 9, 2011

piece (sum 41)

I tried to be perfect
But nothing was worth it
I don't believe it makes me real
I thought it'd be easy
But no one believes me
I meant all the things I said

If you believe it's in my soul
I'd say all the words that I know
Just to see if it would show
That I'm trying to let you know
That I'm better off on my own

This place is so empty
My thoughts are so tempting
I don't know how it got so bad
Sometimes it's so crazy
That nothing can save me
But it's the only thing that I have

If you believe it's in my soul
I'd say all the words that I know
Just to see if it would show
That I'm trying to let you know
That I'm better off on my own

On my own

I tried to be perfect
It just wasn't worth it
Nothing could ever be so wrong
It's hard to believe me
It never gets easy
I guess I knew that all along

If you believe it's in my soul
I'd say all the words that I know
Just to see if it would show
That I'm trying to let you know
That I'm better off on my own

Wednesday, April 6, 2011

Bahagia dalam kedamaian hati ( inspirasi dalam kehidupan umat islam): BICARALAH YANG BAIK ATAU DIAM

Bahagia dalam kedamaian hati ( inspirasi dalam kehidupan umat islam): BICARALAH YANG BAIK ATAU DIAM: "Rasullullah SAW Mengatakan,'Bicaralah Yang Baik Atau Diam'.Pesan Rasullullah SAW itu Menyuruh kita aktif berbicara, namun pembicaraannya har..."

echy noize: sandal bandung

echy noize: sandal bandung: "Klik untuk memperbesar <a href='http://www.fashionbandung.com/images/MS 008.jpg' target='_blank'><img src='product_thumb.php?im..."

Sunday, April 3, 2011

Kau puisi (Bondan prakoso feat fade to black)

Yo baby kau sosok yang punyai arti
Kau Puisi ketika datang sepi
Saat nikmati indah sunset pantai kuta
Hadirmu jadi pelengkapku di tata surya
Aku butuh dunia.. dan kau
sebagai pendamping ketika ku rasakan galau
Aku butuh cinta.. dan kau
adalah tema saatku rasakan galau

Kau ada untuk melengkapi diriku
Kau tercipta untuk menutupi kekuranganku
L. O. V. E. yang membuatku bisa bertahan
Seperti rumput yang tak kan tumbang oleh topan
Emosi, perasaan, jaminan rasa aman
Kau sanggup taklukan hati dengan sebuah senyuman
Aku berdiri karna kau hadir di sisi
Your my everything baby..
kau takkan pernah terganti..

Kaulah belahan hatiku
yang terangi aku
dengan cintamu
Kau hangatkan jiwaku
dan slimuti aku
dengan kasihmu

Ku coba gapai apa yang kau ingin
Saat ku terjatuh sakit kau adalah aspirin
Coba menuntunmu agar ada di dalam track
Kau catatan terindah di dalam teks
Dan aku mengerti apa yang kau mau,
hargai dirimu, menjadi imammu
Karna kau diciptakan dari tulang rusukku
selain itu karna kau bagian dariku.

Dan dirimu damaikan..
hatiku..
Dan artimu..
tak akan.. berakhir..