make/vs/testapp/main.c

branch
newapi
changeset 218
d06e7e8e53e1
parent 216
391c2c723029
child 219
527a66c0afb2
equal deleted inserted replaced
217:b9798109c7d2 218:d06e7e8e53e1
268 268
269 ui_newline(obj); 269 ui_newline(obj);
270 270
271 UiModel* model = ui_model(obj->ctx, UI_ICON_TEXT, "Col 1", UI_STRING, "Col 2", UI_STRING, "Col 3", -1); 271 UiModel* model = ui_model(obj->ctx, UI_ICON_TEXT, "Col 1", UI_STRING, "Col 2", UI_STRING, "Col 3", -1);
272 model->getvalue = table_getvalue; 272 model->getvalue = table_getvalue;
273 ui_table(obj, .colspan = 3, .model = model, .list = wdata->list2); 273 ui_table(obj, .colspan = 3, .model = model, .list = wdata->list2, .onactivate = action_onactivate, .onselection = action_listselection_changed);
274 ui_model_free(obj->ctx, model); 274 ui_model_free(obj->ctx, model);
275 } 275 }
276 } 276 }
277 277
278 ui_show(obj); 278 ui_show(obj);

mercurial