blob: 66b24f5ba64dd5130a9ebae4b8069df573bf70ff (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
############################################################################
#
# File: win.icn
#
# Subject: Procedures to open bare-bones window
#
# Author: Ralph E. Griswold
#
# Date: May 2, 2001
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# These procedures are provided as quick-and-dirty ways to get a
# nominal window as, for example, when testing.
#
# win() causes error termination if a window can't be opened.
# winf(), on the other hand, just fails.
#
############################################################################
#
# Requires: Version 9 graphics
#
############################################################################
#
# Links: wopen
#
############################################################################
link wopen
procedure win(width, height)
/width := 500
/height := 500
return WOpen("size=" || width || "," || height) |
stop("*** can't open window")
return
end
procedure winf(width, height)
/width := 500
/height := 500
return WOpen("size=" || width || "," || height) | fail
end
|