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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
Field Title {
attributes = A_BOLD
text = "A Simple Demo"
}
Field field1 {
attributes = A_BLINK|A_BOLD
text = "This text is bold and flashy"
}
Field field2 {
text = "This is an input field with a default"
}
Field field3 {
width = 30
default = "This is a default entry"
limit = 10
}
Field field4 {
text = "This is a labelled input field"
}
Field field5 {
label = "A temp. label"
}
Field field6 {
text = "Some options to choose from: "
}
Field field7 {
selected = 0
options = "Choose", "another", "of", "these"
}
Field field8 {
width = 6
attributes = A_BOLD|A_REVERSE
action = "EXIT"
function = exit_form
}
Field field9 {
attributes = A_BOLD|A_REVERSE
action = "CANCEL"
function = cancel_form
}
Link input1 as field3 {
next = input2
down = input2
}
Link input2 as field5 {
next = menu1
up = input1
down = menu1
}
Link menu1 as field7 {
next = exit
up = input2
down = exit
}
Link exit as field8 {
up = menu1
right = cancel
}
Link cancel as field9 {
up = input1
down = input1
left = exit
right = input1
}
Form example at 0,0 {
height = 24
width = 80
Field Title at 0,15
Field field1 at 3,23
Field field2 at 7, 2
Field field4 at 11, 2
Field field6 at 15, 2
Field input1 at 7,45
Field input2 at 11,45
Field menu1 at 15,45
Field exit at 20,20
Field cancel at 20,43
}
|