594 ui_list_append(wdata->list, "List Item 3"); |
594 ui_list_append(wdata->list, "List Item 3"); |
595 ui_list_append(wdata->list, "List Item 4"); |
595 ui_list_append(wdata->list, "List Item 4"); |
596 |
596 |
597 ui_button(obj, .label = "Add Menu Item", .onclick = action_button, .name = "mybutton1"); |
597 ui_button(obj, .label = "Add Menu Item", .onclick = action_button, .name = "mybutton1"); |
598 ui_button(obj, .label = "Add List Item", .onclick = action_button2); |
598 ui_button(obj, .label = "Add List Item", .onclick = action_button2); |
|
599 ui_progressbar(obj, .name = "pb"); |
599 ui_listview(obj, .list = wdata->list, .fill = UI_ON, .multiselection = TRUE, |
600 ui_listview(obj, .list = wdata->list, .fill = UI_ON, .multiselection = TRUE, |
600 .onactivate = action_listevent, .onactivatedata = "activate", |
601 .onactivate = action_listevent, .onactivatedata = "activate", |
601 .onselection = action_listevent, .onselectiondata = "selection"); |
602 .onselection = action_listevent, .onselectiondata = "selection"); |
602 |
603 |
603 |
604 |