Application Designer Updated

Now with the application designer you can move and resize the widgets.
Arrow keys to move; SHIFT+arrow keys to resize.

Live demo

application designer

Sample (generated) code:

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
function main(app){
 
    var workarea = app.create("dialog");
    workarea.Title = "Workarea";
    workarea.Width = 551;
    workarea.Height = 314;
    workarea.DialogPosition = {at: "center top"};
 
    var container1 = app.create("container", workarea);
    container1.Top = 10;
    container1.Left = 10;
    container1.Position = "absolute";
    container1.Width = 515;
    container1.Height = 240;
    container1.Resizable = {"grid":5};
    container1.Border = "";
 
    var button2 = app.create("button", container1);
    button2.Top = 205;
    button2.Left = 10;
    button2.Position = "absolute";
    button2.Caption = "myButton";
    button2.Width = 100;
    button2.Height = 22;
    button2.Border = "";
 
    var tabber1 = app.create("tabber", container1);
    tabber1.Top = 5;
    tabber1.Left = 10;
    tabber1.Position = "absolute";
    tabber1.Width = 485;
    tabber1.Height = 185;
    tabber1.Border = "";
 
    var tab1 = app.create("tab", tabber1);
    tab1.Top = 10;
    tab1.Left = 10;
    tab1.Position = "absolute";
    tab1.Width = 410;
    tab1.Caption = "myTab";
    tab1.Border = "";
 
    var datagrid1 = app.create("datagrid", tab1);
    datagrid1.Top = 10;
    datagrid1.Left = 10;
    datagrid1.Position = "absolute";
    datagrid1.Width = 285;
    datagrid1.Height = 115;
    datagrid1.Border = "";
 
    var button1 = app.create("button", container1);
    button1.Top = 205;
    button1.Left = 125;
    button1.Position = "absolute";
    button1.Caption = "myButton";
    button1.Width = 100;
    button1.Height = 22;
    button1.Border = "";
 
}

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *