application/main.c

changeset 445
5059f2435775
parent 444
0a52c26bba1a
equal deleted inserted replaced
444:0a52c26bba1a 445:5059f2435775
411 ui_newline(obj); 411 ui_newline(obj);
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->columnsize[0] = -1;
416 model->getvalue = table_getvalue; 417 model->getvalue = table_getvalue;
417 ui_table(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = UI_ON, .contextmenu = menubuilder, .multiselection = TRUE, 418 ui_table(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = UI_ON, .contextmenu = menubuilder, .multiselection = TRUE,
418 .onactivate = action_table_activate, .onactivatedata = "activate", 419 .onactivate = action_table_activate, .onactivatedata = "activate",
419 .onselection = action_table_activate, .onselectiondata = "selection"); 420 .onselection = action_table_activate, .onselectiondata = "selection");
420 } 421 }

mercurial