~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to packages/extra/newt/newt2.pas

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
program newt2;
 
2
 
 
3
uses newt;
 
4
 
 
5
 
 
6
 
 
7
var
 
8
 
 
9
    form, b1, b2 : newtComponent;
 
10
 
 
11
begin
 
12
 
 
13
    newtInit();
 
14
    newtCls();
 
15
 
 
16
    newtOpenWindow(10, 5, 40, 6, 'Button Sample');
 
17
 
 
18
    b1 := newtButton(10, 1, 'Ok');
 
19
    b2 := newtCompactButton(22, 2, 'Cancel');
 
20
    form := newtForm(Nil, Nil, 0);
 
21
    newtFormAddComponents(form, b1, b2, Nil);
 
22
 
 
23
    newtRunForm(form);
 
24
 
 
25
    newtFormDestroy(form);
 
26
    newtFinished();
 
27
end.