application/main.c

changeset 438
7b1d715e5c11
parent 436
222205801430
equal deleted inserted replaced
437:f02a62de0328 438:7b1d715e5c11
412 } 412 }
413 } 413 }
414 ui_tab(obj, "Tab 1") { 414 ui_tab(obj, "Tab 1") {
415 UiModel *model = ui_model(obj->ctx, UI_STRING, "col1", UI_INTEGER, "col2", UI_ICON, "col3", UI_ICON_TEXT, "col4", UI_INTEGER, "col5", -1); 415 UiModel *model = ui_model(obj->ctx, UI_STRING, "col1", UI_INTEGER, "col2", UI_ICON, "col3", UI_ICON_TEXT, "col4", UI_INTEGER, "col5", -1);
416 model->getvalue = table_getvalue; 416 model->getvalue = table_getvalue;
417 ui_table(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = UI_ON, .contextmenu = menubuilder, .multiselection = TRUE, 417 ui_listview(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = UI_ON, .contextmenu = menubuilder, .multiselection = TRUE,
418 .onactivate = action_table_activate, .onactivatedata = "activate", 418 .onactivate = action_table_activate, .onactivatedata = "activate",
419 .onselection = action_table_activate, .onselectiondata = "selection"); 419 .onselection = action_table_activate, .onselectiondata = "selection");
420 } 420 }
421 ui_tab(obj, "Tab 2") { 421 ui_tab(obj, "Tab 2") {
422 ui_button(obj, .label = "Button 1 Start Thread", .onclick=action_start_thread); 422 ui_button(obj, .label = "Button 1 Start Thread", .onclick=action_start_thread);

mercurial