application/window.c

changeset 80
1a908b060122
parent 78
ad7ced6cf00b
child 83
a612adaee43d
equal deleted inserted replaced
79:483d7342b439 80:1a908b060122
70 ui_progressspinner(obj, .value = wdata->progress); 70 ui_progressspinner(obj, .value = wdata->progress);
71 } 71 }
72 72
73 // main content 73 // main content
74 UiModel* model = ui_model(obj->ctx, UI_ICON_TEXT, "Name", UI_STRING, "Type", UI_STRING_FREE, "Last Modified", UI_STRING_FREE, "Size", -1); 74 UiModel* model = ui_model(obj->ctx, UI_ICON_TEXT, "Name", UI_STRING, "Type", UI_STRING_FREE, "Last Modified", UI_STRING_FREE, "Size", -1);
75 model->columnsize[0] = -1;
76 model->columnsize[1] = 150;
75 model->getvalue = (ui_getvaluefunc) window_resource_table_getvalue; 77 model->getvalue = (ui_getvaluefunc) window_resource_table_getvalue;
76 ui_table(obj, .fill = UI_ON, .model = model, .onselection = action_list_selection, .onactivate = action_list_activate, .ondrop = action_dnd_drop, .varname = "reslist", .multiselection = TRUE); 78 ui_table(obj, .fill = UI_ON, .model = model, .onselection = action_list_selection, .onactivate = action_list_activate, .ondrop = action_dnd_drop, .varname = "reslist", .multiselection = TRUE);
77 79
78 // status bar 80 // status bar
79 81

mercurial