application/main.c

changeset 94
d51e334c1439
parent 90
2019fdbaadfd
child 95
29f5cd5f5367
equal deleted inserted replaced
93:5223de7979e2 94:d51e334c1439
62 ui_toolbar_add_default("button1"); 62 ui_toolbar_add_default("button1");
63 ui_toolbar_add_default("button2"); 63 ui_toolbar_add_default("button2");
64 64
65 UiObject *obj = ui_window("Test", NULL); 65 UiObject *obj = ui_window("Test", NULL);
66 66
67 UiTabbedPane *docs = ui_tabbed_document_view(obj); 67 ui_layout_fill(obj, FALSE);
68 UiObject *tab; 68 ui_grid_sp(obj, 10, 2);
69 tab = ui_document_tab(docs); 69
70 ui_textarea(tab, NULL); 70 ui_rlabel(obj, "Name");
71 tab = ui_document_tab(docs); 71 ui_textfield(obj, NULL);
72 ui_textarea(tab, NULL); 72 ui_newline(obj);
73 tab = ui_document_tab(docs); 73
74 ui_textarea(tab, NULL); 74 ui_rlabel(obj, "Email");
75 tab = ui_document_tab(docs); 75 ui_textfield(obj, NULL);
76 ui_textarea(tab, NULL); 76 ui_button(obj, "OK", NULL, NULL);
77 ui_newline(obj);
78
79 ui_checkbox(obj, "fuck", NULL);
80 ui_rlabel(obj, "FUCK");
81 ui_newline(obj);
82 ui_checkbox(obj, "this", NULL);
83 ui_newline(obj);
84 ui_checkbox(obj, "shit", NULL);
85 ui_newline(obj);
86
87 ui_label(obj, "Awesome Button");
88 UIWIDGET button = ui_button(obj, "...", NULL, NULL);
89
90 ui_end(obj);
91
92 ui_checkbox(obj, "A", NULL);
93 ui_checkbox(obj, "B", NULL);
94 ui_checkbox(obj, "C", NULL);
95 ui_checkbox(obj, "D", NULL);
96 ui_checkbox(obj, "E", NULL);
97 ui_checkbox(obj, "F", NULL);
98 ui_space(obj);
99
100 ui_separator(obj);
101
102 ui_layout_fill(obj, FALSE);
103 ui_hbox(obj);
104 ui_button(obj, "Submit", NULL, NULL);
105 //ui_space(obj);
106 ui_button(obj, "Cancel", NULL, NULL);
107 ui_end(obj);
108
77 ui_show(obj); 109 ui_show(obj);
78 ui_main(); 110 ui_main();
79 111
80 return (EXIT_SUCCESS); 112 return (EXIT_SUCCESS);
81 } 113 }

mercurial