summaryrefslogtreecommitdiff
path: root/extras/mseide_templates/fpgui_app0.mct
blob: 542cd09dd3d332f8f64b64893956d076f4b16458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[header]
name=fpguiapp
comment=fpGUI template application (no forms)
select=0
indent=0
cursorcol=0
cursorrow=0
params=0
paramdefaults=0
[]
{$mode objfpc}{$h+}
{$ifdef mswindows}{$apptype gui}{$endif}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes, fpg_main, frm_main;


procedure MainProc;
var
  frm: TMainForm;
begin
  fpgApplication.Initialize;
  frm := TMainForm.Create(nil);
  try
    frm.Show;
    fpgApplication.Run;
  finally
    frm.Free;
  end;
end;

begin
  MainProc;
end.