blob: ba7761da5c263e552eee5c11ac8f695bd2e0aa7a (
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
|
var elm = require('elm')
win = new elm.Elm.WinStandard(null);
win.setTitle('title');
win.setAutohide(true);
bg = new elm.Elm.Bg(win);
bg.setSizeHintWeight(1.0, 1.0);
win.resizeObjectAdd(bg);
bg.setVisible(true);
bx = new elm.Elm.Box(win);
bx.setSizeHintWeight(1.0, 1.0);
win.resizeObjectAdd(bx);
entry = new elm.Elm.Label(win);
entry.setSize(100, 100);
entry.setText(null, "Texto");
console.log('Texto: ', entry.getText(null));
entry.setSizeHintWeight(1.0, 1.0);
entry.setSizeHintAlign(-1.0, -1.0);
entry.setWrapWidth(50);
bx.packEnd(entry);
entry.setVisible(true);
bx.setVisible(true);
win.setSize(300, 320);
win.setVisible(true);
console.log("Going to wait now\n");
|