-
Notifications
You must be signed in to change notification settings - Fork 9
/
box2.prg
79 lines (46 loc) · 1.3 KB
/
box2.prg
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
// {% LoadHrb( 'lib/tweb/tweb.hrb' ) %}
#include {% TWebInclude() %}
function main()
LOCAL o, oWeb, oBox
local c := ''
DEFINE WEB oWeb TITLE 'Box example II'
HTML oWeb
<style>
.MyBox {
background-color:lightgray;
box-shadow: 5px 5px 10px 0px #888888;
}
</style>
ENDTEXT
INIT WEB oWeb
DEFINE FORM o
o:lDessign := .T.
o:lFluid := .T.
o:cType := 'lg' // xs,sm,md,lg
INIT FORM o
ROW o HALIGN 'center'
COL o GRID 8
ROWGROUP o
BOX oBox ID 'AA' GRID 6 HEIGHT 180 CLASS 'MyBox' OF o
ROW oBox
SAY VALUE 'Hello' GRID 6 ALIGN 'right' OF oBox
SAY VALUE 'Hello' GRID 4 OF oBox
SAY VALUE 'Hello' GRID 2 ALIGN 'center' OF oBox
ENDROW oBox
ROW oBox
SAY VALUE 'Hello' GRID 6 ALIGN 'right' OF oBox
SAY VALUE 'Hello' GRID 4 OF oBox
SAY VALUE 'Hello' GRID 2 ALIGN 'center' OF oBox
ENDROW oBox
ENDBOX oBox
BOX oBox ID 'BB' GRID 4 CLASS 'MyBox' OF o
ROW oBox
SAY VALUE 'Bye' GRID 4 ALIGN 'right' OF oBox
SAY VALUE 'Bye' GRID 8 OF oBox
ENDROW oBox
ENDBOX oBox
ENDROW o
ENDCOL o
ENDROW o
END FORM o
retu nil