application/main.c

changeset 1053
f9976b83795c
parent 1039
6691e007cef7
child 1054
c08c2c9f11b3
equal deleted inserted replaced
1052:bc56cc4dd809 1053:f9976b83795c
1274 UiList *list = ui_list_new(obj->ctx, "persons"); 1274 UiList *list = ui_list_new(obj->ctx, "persons");
1275 ui_list_append(list, &person1); 1275 ui_list_append(list, &person1);
1276 ui_list_append(list, &person2); 1276 ui_list_append(list, &person2);
1277 1277
1278 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10, .fill = TRUE) { 1278 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10, .fill = TRUE) {
1279 //UiModel *model = ui_model(obj->ctx, UI_STRING, "Name", UI_STRING, "Email", -1); 1279 UiModel *model = ui_model(obj->ctx, UI_STRING, "Name", UI_STRING, "Email", -1);
1280 //ui_table(obj, .fill = TRUE, .varname = "persons", .model = model, .getvalue = person_getvalue, .onselection = list_onselection); 1280 ui_table(obj, .fill = TRUE, .varname = "persons", .model = model, .getvalue = person_getvalue, .onselection = list_onselection);
1281 //ui_model_free(obj->ctx, model);
1282 //ui_dropdown(obj, .varname = "persons", .getvalue = person_getvalue, .onactivate = list_onselection, .hexpand = TRUE, .hfill = TRUE); 1281 //ui_dropdown(obj, .varname = "persons", .getvalue = person_getvalue, .onactivate = list_onselection, .hexpand = TRUE, .hfill = TRUE);
1283 char *list[] = { 1282 char *list[] = {
1284 "test 1", 1283 "test 1",
1285 "test 2", 1284 "test 2",
1286 "test 3", 1285 "test 3",

mercurial