-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.coffee
56 lines (50 loc) · 822 Bytes
/
test.coffee
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
$R ->
rect = new Panel
dragable: true
rect.renderTo $ID 'render'
rect1 = new Panel
dragable:true
height:50
width:50
x:10
y:10
maxWidth:100
minWidth:20
maxX:150
maxY:200
rect1.widgetToDrag = rect
rect.addChild rect1
window.rect = rect
window.rect1 = rect1
w = new Window
x:50
y:100
width:200
height:150
w.renderTo $ID 'render'
window.w = w
window.bt = bt = new Button
x:5
y:5
width:15
height:15
bt.renderTo w.header.body
window.res = Forms.create
type:'window'
items:[
{type:'panel',x:20,width:50}
{type:'panel'}
]
window.res.renderTo $ID 'render'
window.l = new LayoutItem()
lb = window.lb = new Label
horisontalAlign:-1
verticalAlign:1
x:20
y:0
width:150
height:20
text:"Example"
lb.renderTo w.header.body
lb.parent = w.header
return