application/main.c

changeset 142
46448d38885c
parent 140
c03c338a7dcf
child 143
d499b29d7cb6
--- a/application/main.c	Fri Nov 10 18:04:40 2017 +0100
+++ b/application/main.c	Sat Nov 11 08:34:06 2017 +0100
@@ -76,12 +76,12 @@
     Document *doc = ui_document_new(sizeof(Document));
     UiContext *ctx = ui_document_context(doc);
     
-    doc->text = ui_text_new(ctx, "text");
+    //doc->text = ui_text_new(ctx, "text");
     //doc->t1 = ui_string_new(ctx, "t1");
     //doc->t2 = ui_string_new(ctx, "t2");
     //doc->t3 = ui_string_new(ctx, "t3");
     
-    //doc->i = ui_int_new(ctx, "int");
+    doc->i = ui_int_new(ctx, "int");
     return doc;
 }
 
@@ -101,9 +101,10 @@
     UiObject *obj = ui_window("Test", NULL);
     ui_set_document(obj, d1);
     
-    ui_textarea_nv(obj, "text");
-    
-    
+    //ui_textarea_nv(obj, "text");
+    ui_radiobutton_nv(obj, "1", "int");
+    ui_radiobutton_nv(obj, "2", "int");
+    ui_radiobutton_nv(obj, "3", "int");
     
     ui_button(obj, "Switch Document", action_newdoc, NULL);
     

mercurial