| 1252 |
1252 |
| 1253 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10, .fill = TRUE) { |
1253 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10, .fill = TRUE) { |
| 1254 //UiModel *model = ui_model(obj->ctx, UI_STRING, "Name", UI_STRING, "Email", -1); |
1254 //UiModel *model = ui_model(obj->ctx, UI_STRING, "Name", UI_STRING, "Email", -1); |
| 1255 //ui_table(obj, .fill = TRUE, .varname = "persons", .model = model, .getvalue = person_getvalue, .onselection = list_onselection); |
1255 //ui_table(obj, .fill = TRUE, .varname = "persons", .model = model, .getvalue = person_getvalue, .onselection = list_onselection); |
| 1256 //ui_model_free(obj->ctx, model); |
1256 //ui_model_free(obj->ctx, model); |
| 1257 ui_dropdown(obj, .varname = "persons", .getvalue = person_getvalue, .onactivate = list_onselection, .hexpand = TRUE, .hfill = TRUE); |
1257 //ui_dropdown(obj, .varname = "persons", .getvalue = person_getvalue, .onactivate = list_onselection, .hexpand = TRUE, .hfill = TRUE); |
| |
1258 char *list[] = { |
| |
1259 "test 1", |
| |
1260 "test 2", |
| |
1261 "test 3", |
| |
1262 "test 4" |
| |
1263 }; |
| |
1264 ui_dropdown(obj, .static_elements = list, .static_nelm = 4); |
| 1258 |
1265 |
| 1259 ui_button(obj, .label = "Test 1"); |
1266 ui_button(obj, .label = "Test 1"); |
| 1260 ui_newline(obj); |
1267 ui_newline(obj); |
| 1261 |
1268 |
| 1262 ui_button(obj, .label = "Button 1", .hfill = TRUE); |
1269 ui_button(obj, .label = "Button 1", .hfill = TRUE); |