Home
Facebook
Twitter
Google+
RSS Feeds
Sebatas Catatan
≡
Navigation
Home
Tentang Blog
Daftar Isi
Home
»
Delphi
»
Open Source
»
Pemrograman
»
Tips n Tricks
»
Form Full Screen Menutupi Taskbar Delphi
Form Full Screen Menutupi Taskbar Delphi
Posted by
Ghozali Muslim
Tambahkan 1 Form dan 1 Tombol, langsung copas saja kodenya.. :D
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
{$J+} //writeable constants on
const
rec: TRect = (Left:0; Top:0; Right:0; Bottom:0);
ws : TWindowState = wsNormal;
{$J-} //writeable constants off
type
TForm1 = class(TForm)
btn1: TButton;
procedure btn1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.btn1Click(Sender: TObject);
begin
Application.Terminate;
end;
procedure TForm1.FormCreate(Sender: TObject);
var
r : TRect;
begin
if BorderStyle <> bsNone then
begin
ws := WindowState;
rec:= BoundsRect;
BorderStyle := bsNone;
r := Screen.MonitorFromWindow(Handle).BoundsRect;
SetBounds(r.Left, r.Top, r.Right-r.Left, r.Bottom-r.Top) ;
end
else
begin
BorderStyle := bsSizeable;
if ws = wsMaximized then
WindowState := wsMaximized
else
SetBounds(rec.Left, rec.Top, rec.Right-rec.Left, rec.Bottom-rec.Top) ;
end;
end;
end.
Tweet
Please FOLLOW and JOIN to get update!
Cool Social Media Sharing Touch Me Widget by
Blogger Widgets
Blog,
Updated at:
2:05 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)
Capture Console Output Realtime Delphi
Form Full Screen Menutupi Taskbar Delphi
►
August
(2)
►
July
(5)
►
June
(2)
►
May
(2)
►
April
(4)
►
March
(8)
►
February
(1)
►
January
(3)
►
2012
(11)
►
December
(11)
0 comments:
Post a Comment