[fpguiapp | fpGUI template application] uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes, fpgfx, gui_form; type TMainForm = class(TfpgForm) public constructor Create(AOwner: TComponent); override; end; { TMainForm } constructor TMainForm.Create(AOwner: TComponent); begin inherited Create(AOwner); WindowTitle := 'My Title'; WindowPosition := wpUser; SetPosition(100, 100, 300, 200); end; procedure MainProc; var frm: TMainForm; begin fpgApplication.Initialize; frm := TMainForm.Create(nil); frm.Show; fpgApplication.Run; end; begin MainProc; end.