File: basic.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 (36 lines) | stat: -rw-r--r-- 699 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
33
34
35
36
with Ada.Text_IO;
use  Ada.Text_IO;

with Common, OS, Strings, UserIO, Controls, Windows;
use  Common, OS, Strings, UserIO, Controls, Windows;

procedure basic is
  ch : character; -- key pressed
begin
  StartupCommon( "TIA", "tia" );
  StartupOS;
  StartupUserIO;
  StartupControls;
  StartupWindows;

  OpenWindow( To255( "Basic Window" ), 0, 0, 40, 20, normal, false );
  DrawWindow;
  MoveTo( 2, 2 );
  Draw( "This is a basic TextTools window." );
  MoveTo( 2, 3 );
  Draw( "It contains no controls." );
  MoveTo( 2, 18 );
  Draw( "Press any key to quit." );

  GetKey( ch );

  CloseWindow;

  ShutdownWindows;
  ShutdownControls;
  ShutdownUserIO;
  ShutdownOS;
  ShutdownCommon;

end basic;