application/main.c

changeset 84
a56c2baa9429
parent 83
a38aec91bd66
child 85
91f45354d1e2
equal deleted inserted replaced
83:a38aec91bd66 84:a56c2baa9429
115 ui_menuitem("item3", NULL, NULL); 115 ui_menuitem("item3", NULL, NULL);
116 ui_submenu_end(); 116 ui_submenu_end();
117 ui_menuitem("item4", NULL, NULL); 117 ui_menuitem("item4", NULL, NULL);
118 118
119 UiObject *obj = ui_window("Test", NULL); 119 UiObject *obj = ui_window("Test", NULL);
120 ui_hbox(obj);
121 ui_button(obj, "HELLO", NULL, NULL);
122 ui_button(obj, "WORLD", NULL, NULL);
123 ui_end(obj);
120 ui_button(obj, "Test1", action_button, NULL); 124 ui_button(obj, "Test1", action_button, NULL);
121 ui_button(obj, "Test2", action_button, NULL); 125 ui_button(obj, "Test2", action_button, NULL);
122 ui_button(obj, "Test3", action_button, NULL); 126 ui_button(obj, "Test3", action_button, NULL);
123 ui_button(obj, "Test4", action_button, NULL); 127 ui_button(obj, "Test4", action_button, NULL);
124 ui_show(obj); 128 ui_show(obj);
129 fflush(stdout);
125 ui_main(); 130 ui_main();
126 /* 131 /*
127 ui_locales_dir("/opt/app1/locales"); 132 ui_locales_dir("/opt/app1/locales");
128 ui_load_lang_def(NULL, "en_EN"); 133 ui_load_lang_def(NULL, "en_EN");
129 //ui_openfilefunc(action_new, NULL); 134 //ui_openfilefunc(action_new, NULL);

mercurial