make/vs/testapp/main.c

branch
newapi
changeset 252
7d176764756d
parent 250
d2068517fbdd
--- a/make/vs/testapp/main.c	Sun Feb 11 13:59:40 2024 +0100
+++ b/make/vs/testapp/main.c	Sun Feb 11 15:44:33 2024 +0100
@@ -185,11 +185,12 @@
 }
 
 void dialog_result(UiEvent *evt, void *data) {
+    char *str = evt->eventdata;
     printf("dialog: %d\n", (int)evt->intval);
 }
 
 void btn_dialog(UiEvent *evt, void *data) {
-    ui_dialog(evt->obj, .title = "Title", .content = "Hello World", .button1_label = "Yes", .button2_label = "No", .closebutton_label = "Close", .result = dialog_result);
+    ui_dialog(evt->obj, .title = "Title", .input = TRUE, .content = "Hello World", .button1_label = "Yes", .button2_label = "No", .closebutton_label = "Close", .result = dialog_result);
 }
 
 

mercurial