application/main.c

branch
newapi
changeset 333
634e3ce80afe
parent 332
7e7c05af8f3a
child 335
91d4f0391282
equal deleted inserted replaced
332:7e7c05af8f3a 333:634e3ce80afe
45 } MyDocument; 45 } MyDocument;
46 46
47 MyDocument *doc1; 47 MyDocument *doc1;
48 MyDocument *doc2; 48 MyDocument *doc2;
49 49
50 UIWIDGET tabview;
50 51
51 void action_menu(UiEvent *event, void *userdata) { 52 void action_menu(UiEvent *event, void *userdata) {
52 53
53 } 54 }
54 55
189 } 190 }
190 } 191 }
191 ui_tab(obj, "Tab 2") { 192 ui_tab(obj, "Tab 2") {
192 ui_button(obj, .label = "Button", .onclick=action_tab2_button); 193 ui_button(obj, .label = "Button", .onclick=action_tab2_button);
193 } 194 }
195 ui_tab(obj, "Tab 3 x") {
196 UiTabViewArgs args = {0};
197 tabview = ui_tabview_create(obj, args);
198
199 UiObject *tab1 = ui_tabview_add(tabview, "Sub 1", -1);
200 ui_button(tab1, .label = "Button 1");
201
202
203 UiObject *tab2 = ui_tabview_add(tabview, "Sub 2", -1);
204 ui_button(tab2, .label = "Button 2");
205
206 }
194 } 207 }
195 208
196 /* 209 /*
197 210
198 */ 211 */

mercurial