// efg, Nov 1999 // Example of how to use full screen in Delphi unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure FormCreate(Sender: TObject); procedure Button1Click(Sender: TObject); private { Private declarations } public PROCEDURE CreateParams(VAR Params: TCreateParams); OVERRIDE; end; var Form1: TForm1; implementation {$R *.DFM} procedure TForm1.FormCreate(Sender: TObject); begin // Full Screen (but still with top Windows title area) WindowState := wsMaximized end; // Get rid of top Windows caption bar and border PROCEDURE TForm1.CreateParams(VAR Params: TCreateParams); BEGIN Inherited CreateParams(Params); WITH Params DO Style := (Style OR WS_POPUP) AND (NOT (WS_BORDER OR WS_THICKFRAME OR WS_DLGFRAME)) END {CreateParams}; procedure TForm1.Button1Click(Sender: TObject); begin Close end; end.