File: uio2_demo.adb

package info (click to toggle)
libtexttools 2.0.3-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,188 kB
  • ctags: 635
  • sloc: ada: 13,120; cpp: 1,679; ansic: 777; makefile: 156; sh: 2
file content (32 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (3)
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
with common, userio;
use  common, userio;

with text_io;
use text_io;

procedure uio_demo is
  ch : character;
  r  : aRect;
begin
  StartupCommon( "uio2_demo", "User IO Demo 2" );
  StartupUserIO;

  SetPenColour( white );

  Draw( "There should be a brief pause before the rectangle appears" );
  WaitToReveal;
  SetRect( r, 10, 10, 20 , 20 );
  MoveToGlobal( 0, 9 );
  Draw( "FrameRect" );
  FrameRect( r );
  WaitFor( 200 );
  Reveal;

  MoveToGlobal( 0, 23 );
  Draw( "Press a key" );
  GetKey( ch );
  ShutdownUserIO;
  ShutdownCommon;

end uio_demo;