fpc/packages/fpgtk/examples/testgtk.pp
marco 5e41b056d0 * examples moved
git-svn-id: trunk@9995 -
2008-01-26 23:00:46 +00:00

22 lines
503 B
ObjectPascal

{$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.