summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/fpgtk/examples/testgtk.pp
blob: 8920be4d8526eacbca4a59dd553daaadbd130df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{$mode objfpc}
program TestGTK;

uses SysUtils, classes, FPgtk, FPgtkExt, lister;

begin
  try
    writeln ('Creating application');
    application := TFPgtkApplication.Create;
    writeln ('Setting mainwindow');
    application.MainWindow := TlistWindow.Create;
    writeln ('Running GTK');
    application.Run;
    writeln ('Everything Closed');
    application.Free;
    writeln ('Cleaned up everything');
  except
    on e : Exception do
      writeln ('UNEXPECTED ERORR: ',e.message);
  end;
end.