<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rizq Technology - Exploring Your iDea. &#187; Delphi</title>
	<atom:link href="http://rizqtech.net/category/programming/delphi/feed/" rel="self" type="application/rss+xml" />
	<link>http://rizqtech.net</link>
	<description>All about My Experiences, Knowledge and Thoughts.</description>
	<lastBuildDate>Sat, 14 Jan 2012 17:20:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Delphi Basic#4</title>
		<link>http://rizqtech.net/2009/04/26/delphi-basic41/</link>
		<comments>http://rizqtech.net/2009/04/26/delphi-basic41/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 15:24:24 +0000</pubDate>
		<dc:creator>Rizky</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[menu delphi]]></category>
		<category><![CDATA[menuPopup]]></category>

		<guid isPermaLink="false">http://rizqtech.net/?p=568</guid>
		<description><![CDATA[Latihan kali ini kita membuat sebuah tampilan menu pada window yang di gunakan dalam berbagai aplikasi. Membuat 1 Form dengan Source Code : unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus; type TForm1 = class(TForm) MainMenu1: TMainMenu; Menu11: TMenuItem; itemsmenu11: TMenuItem; itemsmenu21: TMenuItem; N1: TMenuItem; itemmenu4CtrlF11: TMenuItem; itemsmenu4CtrlShiftF11: TMenuItem; [...]]]></description>
			<content:encoded><![CDATA[<p>Latihan kali ini kita membuat sebuah tampilan menu pada window yang di gunakan dalam berbagai aplikasi.</p>
<p>Membuat 1 Form dengan Source Code :</p>
<pre name="code" class="delphi">

unit Unit1;

interface

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

type
TForm1 = class(TForm)
MainMenu1: TMainMenu;
Menu11: TMenuItem;
itemsmenu11: TMenuItem;
itemsmenu21: TMenuItem;
N1: TMenuItem;
itemmenu4CtrlF11: TMenuItem;
itemsmenu4CtrlShiftF11: TMenuItem;
itemsmenu51: TMenuItem;
itemsmenu61: TMenuItem;
Exit1: TMenuItem;
EXIT2: TMenuItem;
Menu21: TMenuItem;
itemsmenu12: TMenuItem;
itemsmenu22: TMenuItem;
itemsmenu23: TMenuItem;
itemsmenu31: TMenuItem;
procedure itemsmenu11Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.itemsmenu11Click(Sender: TObject);
var
MenuItem : TMenuItem;
Pilihan : integer;
MenuPopUp, ItemMenu : integer;
str : string;
begin
Menuitem:= Sender as TmenuItem;
Pilihan:= MenuItem.Tag;

//mencari menu dan item menu yang di pilih

if (Pilihan &gt;10) then
MenuPopup:=2
else
MenuPopup:=1;

if (Pilihan &gt;10) then
ItemMenu:=Pilihan - 10
else
ItemMenu :=Pilihan;

//menginisialisasi string yang di tampilkan

str:='Menu'+ IntToStr(MenuPopup) + 'Item Menu' +
IntToStr (ItemMenu) + 'dipilih or clicked';

//menampilkan kotak pesan
Application.MessageBox(PChar (Str), 'Informasi',
MB_OK or MB_ICONINFORMATION);
end;

end.</pre>
<p>SCREENSHOOT BELOW :</p>
<p><img class="alignnone size-full wp-image-569" title="items-menu" src="http://rizqtech.net/wp-content/uploads/2009/04/items-menu.jpg" alt="items-menu" width="470" height="276" /></p>
<p><img class="size-full wp-image-570 alignleft" title="items-menu-info-popup" src="http://rizqtech.net/wp-content/uploads/2009/04/items-menu-info-popup.jpg" alt="items-menu-info-popup" width="564" height="388" /><br />
Kesimpulan :</p>
<p>Metode ini adalah basic dari membuat tampilan menu pada window.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Frizqtech.net%2F2009%2F04%2F26%2Fdelphi-basic41%2F';
  addthis_title  = 'Delphi+Basic%234';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<h3  class="related_post_title">Random Posts</h3><ul class="related_post"><li><a href="http://rizqtech.net/2008/08/01/five-ways-to-put-your-value-in-the-spotlight/"  title="Five Ways to Put Your Value in the Spotlight.">Five Ways to Put Your Value in the Spotlight.</a></li><li><a href="http://rizqtech.net/2009/04/26/delphi-basic5/"  title="Delphi Basic#5">Delphi Basic#5</a></li><li><a href="http://rizqtech.net/2008/08/06/binary-search-recursive-ascending-way/"  title="Binary Search Recursive Ascending Way.">Binary Search Recursive Ascending Way.</a></li><li><a href="http://rizqtech.net/2007/05/10/o0-script-untuk-mencari-gaji-bersih-dgn-caseof/"  title="Script Untuk Mencari Gaji Bersih with &#8220;Case of&#8221;">Script Untuk Mencari Gaji Bersih with &#8220;Case of&#8221;</a></li><li><a href="http://rizqtech.net/2007/04/17/tutorial-2/"  title="Tutorial 2">Tutorial 2</a></li><li><a href="http://rizqtech.net/2010/02/09/aplikasi-sederhana-odbc-visual-basic-part-2/"  title="Aplikasi Sederhana ODBC Visual Basic (Part 2).">Aplikasi Sederhana ODBC Visual Basic (Part 2).</a></li><li><a href="http://rizqtech.net/2008/06/01/string-dalam-bhs-c/"  title="String dalam bahasa C.">String dalam bahasa C.</a></li><li><a href="http://rizqtech.net/2007/08/08/basic-command-for-linux/"  title="Basic Command For Linux">Basic Command For Linux</a></li><li><a href="http://rizqtech.net/2007/11/20/newbie-di-bahasa-c-episode-6/"  title="Newbie di Bahasa C =&#62; episode 6">Newbie di Bahasa C =&#62; episode 6</a></li><li><a href="http://rizqtech.net/2008/06/09/newbie-c-language-eps-12/"  title="Newbie @ C++ Language eps 12">Newbie @ C++ Language eps 12</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rizqtech.net/2009/04/26/delphi-basic41/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delphi Basic#5</title>
		<link>http://rizqtech.net/2009/04/26/delphi-basic5/</link>
		<comments>http://rizqtech.net/2009/04/26/delphi-basic5/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 14:10:48 +0000</pubDate>
		<dc:creator>Rizky</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[mid]]></category>

		<guid isPermaLink="false">http://rizqtech.net/?p=562</guid>
		<description><![CDATA[Sekarang kita mencoba untuk membuat form yang mempunyai kegunaan untuk menampilkan Window pada Menu yang sering jumpai, semisal untuk membuat jendela baru pada IE or Firefox. =&#62; Pertama kita membuat FormInduk untuk tempat menu yang akan kita tambahkan nanti. =&#62; Kedua kita membuat FormAnak sebagai window yang akan di tambahkan di dalam FormInduk. Source code [...]]]></description>
			<content:encoded><![CDATA[<p>Sekarang kita mencoba untuk membuat form yang mempunyai kegunaan untuk menampilkan Window pada Menu yang sering jumpai, semisal untuk membuat jendela baru pada IE or Firefox.</p>
<p>=&gt; Pertama kita membuat FormInduk untuk tempat menu yang akan kita tambahkan nanti.</p>
<p>=&gt; Kedua kita membuat FormAnak sebagai window yang akan di tambahkan di dalam FormInduk.</p>
<p><strong>Source code at main.pas / FormInduk</strong></p>
<pre name="code" class="delphi">
unit main;

interface

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

type
TFormInduk = class(TForm)
MainMenu1: TMainMenu;
Jendela1: TMenuItem;
Jen1: TMenuItem;
Keluar1: TMenuItem;
Jendela2: TMenuItem;
Bertingkat1: TMenuItem;
Berubin1: TMenuItem;
Aturikon1: TMenuItem;
utupSemua1: TMenuItem;
procedure Jen1Click(Sender: TObject);
procedure Keluar1Click(Sender: TObject);
procedure Bertingkat1Click(Sender: TObject);
procedure Berubin1Click(Sender: TObject);
procedure Aturikon1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure utupSemua1Click(Sender: TObject);
private
jumlah : integer;

public
{ Public declarations }
end;

var
FormInduk: TFormInduk;

implementation

uses Unit2;

{$R *.dfm}

procedure TFormInduk.Jen1Click(Sender: TObject);
var
Unit2 : TFormAnak;
begin
Unit2:= TFormAnak.Create(Self);
inc (jumlah);
unit2.Caption := 'Jendela Anak ke -' + IntToStr (Jumlah);
end;

procedure TFormInduk.Keluar1Click(Sender: TObject);
begin
Close;
end;

procedure TFormInduk.Bertingkat1Click(Sender: TObject);
begin
Cascade;
end;

procedure TFormInduk.Berubin1Click(Sender: TObject);
begin
Tile;
end;

procedure TFormInduk.Aturikon1Click(Sender: TObject);
begin
ArrangeIcons;
end;

procedure TFormInduk.FormCreate(Sender: TObject);
begin
Jumlah :=0;
end;

procedure TFormInduk.utupSemua1Click(Sender: TObject);
var
i,Jumlah : integer;
begin
Jumlah := MDIChildCount - 1;
for i := Jumlah downto  0 do
MDIChildren[i].Close;

end;

end.
</pre>
<p><strong>Source code unit2.pas/FromAnak</strong></p>
<pre name="code" class="delphi">
unit Unit2;

interface

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

type
TFormAnak = class(TForm)

procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;

var
FormAnak: TFormAnak;

implementation

{$R *.dfm}

procedure TFormAnak.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action := caFree;
end;

end.</pre>
<p>SCREENSHOOT BELOW :</p>
<p><img class="size-full wp-image-563 alignleft" title="scr-1-lat-window-new" src="http://rizqtech.net/wp-content/uploads/2009/04/scr-1-lat-window-new.jpg" alt="scr-1-lat-window-new" width="554" height="381" /></p>
<p><img class="size-full wp-image-564 alignleft" title="scr-2-lat-window-new" src="http://rizqtech.net/wp-content/uploads/2009/04/scr-2-lat-window-new.jpg" alt="scr-2-lat-window-new" width="554" height="382" /></p>
<p><img class="size-full wp-image-565 alignleft" title="scr-3-lat-window-new" src="http://rizqtech.net/wp-content/uploads/2009/04/scr-3-lat-window-new.jpg" alt="scr-3-lat-window-new" width="556" height="382" /></p>
<p>Kesimpulan :</p>
<p>Metode ini adalah basic untuk membuat window/jendela baru pada aplikasi delphi.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Frizqtech.net%2F2009%2F04%2F26%2Fdelphi-basic5%2F';
  addthis_title  = 'Delphi+Basic%235';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<h3  class="related_post_title">Related Post </h3><ul class="related_post"><li><a href="http://rizqtech.net/2009/04/19/delphi-basic3/"  title="Delphi Basic#3">Delphi Basic#3</a></li><li><a href="http://rizqtech.net/2009/04/19/delphi-basic2/"  title="Delphi Basic#2">Delphi Basic#2</a></li><li><a href="http://rizqtech.net/2009/03/24/4gl-multi-tier-with-delphi/"  title="Delphi Basic#1">Delphi Basic#1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rizqtech.net/2009/04/26/delphi-basic5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delphi Basic#3</title>
		<link>http://rizqtech.net/2009/04/19/delphi-basic3/</link>
		<comments>http://rizqtech.net/2009/04/19/delphi-basic3/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 08:10:06 +0000</pubDate>
		<dc:creator>Rizky</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[ifelse]]></category>
		<category><![CDATA[selection]]></category>

		<guid isPermaLink="false">http://rizqtech.net/?p=523</guid>
		<description><![CDATA[Di Post sebelumnya kita sudah coba menggunakan Selection pada Delphi utk menentukan Hari , Let&#8217;s try utk Menentukan BULAN. unit Unit2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm2 = class(TForm) Label1: TLabel; nilai: TEdit; Label2: TLabel; Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { [...]]]></description>
			<content:encoded><![CDATA[<p>Di <a href="http://rizqtech.net/2009/04/19/delphi-basic2/" >Post sebelumnya</a> kita sudah coba menggunakan Selection pada Delphi utk menentukan Hari , Let&#8217;s try utk Menentukan BULAN.</p>
<pre name="code" class="delphi">
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm2 = class(TForm)
Label1: TLabel;
nilai: TEdit;
Label2: TLabel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
procedure TForm2.Button1Click(Sender: TObject);
begin
if nilai.Text=’1?then
label2.Caption:=’January’
else if nilai.Text=’2?then
label2.Caption:=’February’
else if nilai.Text=’3?then
label2.Caption:=’March’
else if nilai.Text=’4?then
label2.Caption:=’April’
else if nilai.Text=’5?then
label2.Caption:=’May’
else if nilai.Text=’6?then
label2.Caption:=’Juny’
else if nilai.Text=’7?then
label2.Caption:=’July’
else if nilai.Text=’8?then
label2.Caption:=’August’
else if nilai.Text=’9?then
label2.Caption:=’September’
else if nilai.Text=’10?then
label2.Caption:=’October’
else if nilai.Text=’11?then
label2.Caption:=’November’
else if nilai.Text=’12?then
label2.Caption:=’December’
else label2.Caption:=’Inputan Anda Salah’;
end;
end.
</pre>
<p class="MsoNormal">SCREENSHOOT BELOW :</p>
<p class="MsoNormal"><img class="alignnone size-full wp-image-524" title="bulan-if" src="http://rizqtech.net/wp-content/uploads/2009/04/bulan-if.jpg" alt="bulan-if" width="532" height="327" /></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Frizqtech.net%2F2009%2F04%2F19%2Fdelphi-basic3%2F';
  addthis_title  = 'Delphi+Basic%233';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<h3  class="related_post_title">Related Post </h3><ul class="related_post"><li><a href="http://rizqtech.net/2009/04/26/delphi-basic5/"  title="Delphi Basic#5">Delphi Basic#5</a></li><li><a href="http://rizqtech.net/2009/04/19/delphi-basic2/"  title="Delphi Basic#2">Delphi Basic#2</a></li><li><a href="http://rizqtech.net/2009/03/24/4gl-multi-tier-with-delphi/"  title="Delphi Basic#1">Delphi Basic#1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rizqtech.net/2009/04/19/delphi-basic3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delphi Basic#2</title>
		<link>http://rizqtech.net/2009/04/19/delphi-basic2/</link>
		<comments>http://rizqtech.net/2009/04/19/delphi-basic2/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 08:04:53 +0000</pubDate>
		<dc:creator>Rizky</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[if else]]></category>

		<guid isPermaLink="false">http://rizqtech.net/?p=518</guid>
		<description><![CDATA[Bagaimana mencari atau selection pada Delphi, berikut contoh di bawah ini menggunakan ekspresi &#8220;IF ELSE&#8221; Case-nya : Bagaimana menentukan Hari Berdasarkan Bilangan yang di input ? unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Label1: TLabel; Label2: TLabel; nilai: TEdit; Button1: TButton; procedure Button1Click(Sender: TObject); [...]]]></description>
			<content:encoded><![CDATA[<p>Bagaimana mencari atau selection pada Delphi, berikut contoh di bawah ini menggunakan ekspresi &#8220;IF ELSE&#8221;</p>
<p>Case-nya : Bagaimana menentukan Hari Berdasarkan Bilangan yang di input ?</p>
<pre name="code" class="delphi">
unit Unit1;

interface

uses

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

Dialogs, StdCtrls;

type

TForm1 = class(TForm)

Label1: TLabel;

Label2: TLabel;

nilai: TEdit;

Button1: TButton;

procedure Button1Click(Sender: TObject);

private

{ Private declarations }

public

{ Public declarations }

end;

var

Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);

begin

if nilai.text=’1? then

begin

label2.Caption:=’Senin’;

end

else if nilai.text=’2? then

begin

label2.Caption:=’Selasa’;

end

else if nilai.text=’3? then

begin

label2.Caption:=’Rabu’;

end

else if nilai.text=’4? then

begin

label2.Caption:=’Kamis’;

end

else if nilai.text=’5? then

begin

label2.Caption:=’Jumat’;

end

else if nilai.text=’6? then

begin

label2.Caption:=’Sabtu’;

end

else if nilai.text=’7? then

begin

label2.Caption:=’Minggu’;

end else

label2.Caption:=’Inputan anda Salah !’;

end;

end.
</pre>
<p class="MsoNormal">SCREENSHOOT BELOW :</p>
<p class="MsoNormal"><img class="size-full wp-image-519 alignleft" title="hari-if" src="http://rizqtech.net/wp-content/uploads/2009/04/hari-if.jpg" alt="hari-if" width="563" height="332" /></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Frizqtech.net%2F2009%2F04%2F19%2Fdelphi-basic2%2F';
  addthis_title  = 'Delphi+Basic%232';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<h3  class="related_post_title">Related Post </h3><ul class="related_post"><li><a href="http://rizqtech.net/2009/04/26/delphi-basic5/"  title="Delphi Basic#5">Delphi Basic#5</a></li><li><a href="http://rizqtech.net/2009/04/19/delphi-basic3/"  title="Delphi Basic#3">Delphi Basic#3</a></li><li><a href="http://rizqtech.net/2009/03/24/4gl-multi-tier-with-delphi/"  title="Delphi Basic#1">Delphi Basic#1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rizqtech.net/2009/04/19/delphi-basic2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Delphi Basic#1</title>
		<link>http://rizqtech.net/2009/03/24/4gl-multi-tier-with-delphi/</link>
		<comments>http://rizqtech.net/2009/03/24/4gl-multi-tier-with-delphi/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 14:17:29 +0000</pubDate>
		<dc:creator>Rizky</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[4gl]]></category>
		<category><![CDATA[multi tier]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[tform]]></category>

		<guid isPermaLink="false">http://rizqtech.net/?p=495</guid>
		<description><![CDATA[#CHAPTER 1 1.How to create simple pop up Welcome Text in Delphi ? unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) procedure formclick(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.formclick(Sender: TObject); begin Application.MessageBox('Welcome [...]]]></description>
			<content:encoded><![CDATA[<p><strong>#CHAPTER 1</strong></p>
<p>1.How to create simple pop up Welcome Text in Delphi ?</p>
<pre name="code" class="delphi">

unit Unit1;

interface

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

type
TForm1 = class(TForm)
procedure formclick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.formclick(Sender: TObject);
begin
Application.MessageBox('Welcome to Delphi and Rizq Technology','Information',MB_OKCancel or MB_ICONINFORMATION);

end;

end.</pre>
<p>2. How to create simple button with text appear ?</p>
<pre name="code" class="delphi">

unit Unit1;

interface

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

type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Button4: TButton;
procedure formclick(Sender: TObject);
procedure formclose(Sender: TObject; var Action: TCloseAction);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.formclick(Sender: TObject);
begin
Application.MessageBox('Welcome to Delphi and Rizq Technology','Information',MB_OKCancel or MB_ICONINFORMATION);

end;

procedure TForm1.formclose(Sender: TObject; var Action: TCloseAction);
begin
Application.MessageBox('Mau kemana Bro....!!','WARNING!!!',MB_ICONINFORMATION);
end;

procedure TForm1.Button1Click(Sender:TObject);
begin
edit1.Text:='Saya';
end;

procedure TForm1.Button2Click(Sender:TObject);
begin
edit2.Text:='Belajar';
end;

procedure TForm1.Button3Click(Sender:TObject);
begin
edit3.Text:='Delphi';
end;

procedure TForm1.Button4Click(Sender:Tobject);
begin
edit1.Text:='';
edit2.Text:='';
edit3.Text:='';
end;

end.</pre>
<p>SCREENSHOOT</p>
<p><img class="size-full wp-image-497 alignleft" title="Screenshoot 2" src="http://rizqtech.net/wp-content/uploads/2009/03/screenshoot-latihan-2.jpg" alt="Screenshoot 2" width="553" height="381" /></p>
<p>3.How to Create button affected changed background color ?</p>
<pre name="code" class="delphi">
unit Unit3;

interface

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

type
TForm3 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form3: TForm3;

implementation

{$R *.dfm}

procedure TForm3.Button1Click(Sender: TObject);
begin
form3.Color:=clyellow
end;

procedure TForm3.Button2Click(Sender: TObject);
begin
form3.Color:=clred
end;

procedure TForm3.Button3Click(Sender: TObject);
begin
form3.Color:=clgreen
end;

procedure TForm3.Button4Click(Sender: TObject);
begin
application.Terminate;
end;

end.
</pre>
<p>SCREENSHOOT</p>
<p><img class="size-full wp-image-496 alignleft" title="Screenshoot 3" src="http://rizqtech.net/wp-content/uploads/2009/03/screenshoot-latihan-3.jpg" alt="Screenshoot 3" width="563" height="389" /></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Frizqtech.net%2F2009%2F03%2F24%2F4gl-multi-tier-with-delphi%2F';
  addthis_title  = 'Delphi+Basic%231';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<h3  class="related_post_title">Related Post </h3><ul class="related_post"><li><a href="http://rizqtech.net/2009/04/26/delphi-basic5/"  title="Delphi Basic#5">Delphi Basic#5</a></li><li><a href="http://rizqtech.net/2009/04/19/delphi-basic3/"  title="Delphi Basic#3">Delphi Basic#3</a></li><li><a href="http://rizqtech.net/2009/04/19/delphi-basic2/"  title="Delphi Basic#2">Delphi Basic#2</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://rizqtech.net/2009/03/24/4gl-multi-tier-with-delphi/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

