-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayground.js
54 lines (44 loc) · 872 Bytes
/
playground.js
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
//Called when application is started.
function OnStart()
{
app.Hide();
//Create a layout with objects vertically centered.
mainLay = app.CreateLayout( "Linear", "VCenter,FillXY" )
//Create a text label and add it to layout.
var txt = app.CreateText( "Hello hello helo hello")
txt.SetTextSize( 32 )
mainLay.AddChild( txt )
var menuList = "item1 hvkuyvuiyvigvg| item2| item3|item4| item5| item6";
var dd = myui.DropdownButton(mainLay, "Dropdown menu", -1);
dd.addItems = "items 1x sdfgsdfgsdfg";
dd.addItems = "items 2";
dd.addItems = "Items 3";
dd.addItems = "items 4";
dd.addItems = "items 5";
dd.AddDropdownMenu;
// dd.SetBackColor("red");
var btn =app.CreateButton( "ptgffghg", 0.8,-1.0 )
mainLay.AddChild(btn);
app.AddLayout( mainLay )
setTimeout(()=>{app.Show()}, 500)
}
app.Script("UIFactory.js");
/*-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
*/