Home
Facebook
Twitter
Google+
RSS Feeds
Sebatas Catatan
≡
Navigation
Home
Tentang Blog
Daftar Isi
Home
»
Delphi
»
Open Source
»
Pemrograman
»
Tips n Tricks
»
Delphi Form Tanpa Caption Bar
Delphi Form Tanpa Caption Bar
Posted by
Ghozali Muslim
Berikut ini cara membuat form delphi tanpa caption bar. Tambahkan 1 button untuk Close karena nanti tombol close bawaan form akan hilang...
pada bagian Type tambahkan prosedur CreateParams :
type
TForm1 = class(TForm)
Button1: TButton;
//tambahkan prosedure disini
procedure CreateParams(var Params: TCreateParams); override;
procedure Button1Click(Sender: TObject);
kemudian pada bagian implementation tulis kode seperti berikut :
implementation
{$R *.dfm}
procedure TForm1.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
with Params do
Style := (Style or WS_POPUP) and (not WS_DLGFRAME);
end;
Dan hasilnya seperti gambar dibawah :
Source Code Lengkap :
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
//tambahkan prosedure disini
procedure CreateParams(var Params: TCreateParams); override;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
with Params do
Style := (Style or WS_POPUP) and (not WS_DLGFRAME);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
close;
end;
end.
Program + Source Code
dapat di download di
SINI
Tweet
Please FOLLOW and JOIN to get update!
Cool Social Media Sharing Touch Me Widget by
Blogger Widgets
Blog,
Updated at:
7:11 PM
0 comments:
Post a Comment
Newer Post
Older Post
Home
Popular Posts
Menampilkan Bilangan Genap Ganjil dan Prima dengan Delphi
Konversi Text ke ASCII, HEXA, BINER, OCTAL
Menggunakan Fast Report Secara Runtime
Koneksi Database Interbase / Firebird dengan Delphi 7
Membuat Tabel Pada Interbase / Firebird via IBExpert
Categories
Database
Delphi
Firebird
IBExpert
Interbase
Jaringan
Lazarus
MySQL
Network
Open Source
Pemrograman
RDBMS
Tips n Tricks
Archives
►
2014
(4)
►
June
(1)
►
March
(1)
►
February
(1)
►
January
(1)
►
2013
(32)
►
December
(1)
►
November
(1)
►
October
(1)
►
September
(2)
►
August
(2)
►
July
(5)
►
June
(2)
►
May
(2)
►
April
(4)
►
March
(8)
►
February
(1)
►
January
(3)
▼
2012
(11)
▼
December
(11)
Delphi Form Tanpa Caption Bar
Form Always On Top Delphi
Flash Title Bar Delphi
Animasi Form Delphi
Mendapatkan kode ASCII dari tombol dengan Delphi
Konversi Text ke ASCII, HEXA, BINER, OCTAL
Konversi BINER ke DECIMAL
Asynchronous Transfer Mode ( ATM )
Remote Access Database MySQL via Virtual PC
Database Terdistribusi
Wireless Architecture and Protocols
0 comments:
Post a Comment