application/main.c

changeset 67
f72c4f01bf4a
parent 66
8d490d97aab8
child 68
bd9fb6476b80
equal deleted inserted replaced
66:8d490d97aab8 67:f72c4f01bf4a
103 ui_toolbar_add_default("button"); 103 ui_toolbar_add_default("button");
104 104
105 printf("create window\n"); 105 printf("create window\n");
106 UiObject *window = ui_window("Mod0", NULL); 106 UiObject *window = ui_window("Mod0", NULL);
107 107
108 ui_layout_fill(window, FALSE);
109 ui_grid(window);
110 ui_button(window, "Test1________________", action_button, NULL);
111 ui_button(window, "Test2", action_button, NULL);
112 ui_newline(window);
108 ui_button(window, "Test1", action_button, NULL); 113 ui_button(window, "Test1", action_button, NULL);
109 ui_button(window, "Test2", action_button, NULL); 114 ui_button(window, "Test2", action_button, NULL);
110
111 ui_hbox(window);
112
113 ui_layout_fill(window, FALSE);
114 ui_vbox(window);
115 ui_button(window, "A", NULL, NULL);
116 ui_button(window, "B", NULL, NULL);
117 ui_button(window, "C", NULL, NULL);
118 ui_end(window); 115 ui_end(window);
119
120 ui_textarea_nv(window, "text");
121 ui_end(window);
122
123 ui_button(window, "Test4", action_button, NULL);
124 116
125 ui_show(window); 117 ui_show(window);
126 ui_main(); 118 ui_main();
127 119
128 return (EXIT_SUCCESS); 120 return (EXIT_SUCCESS);

mercurial