application/main.c

changeset 109
b9808f916687
parent 108
fcf6d5fac8f5
child 110
36f1581b43e2
equal deleted inserted replaced
108:fcf6d5fac8f5 109:b9808f916687
103 UiObject *obj = ui_simplewindow("Test", NULL); 103 UiObject *obj = ui_simplewindow("Test", NULL);
104 //UIWIDGET w = ui_drawingarea(obj, draw, NULL); 104 //UIWIDGET w = ui_drawingarea(obj, draw, NULL);
105 //ui_mouse_handler(obj, w, click, NULL); 105 //ui_mouse_handler(obj, w, click, NULL);
106 106
107 ///* 107 ///*
108 ui_vbox_sp(obj, 8, 8); 108 ui_grid(obj);
109 109
110 ui_layout_fill(obj, FALSE); 110 ui_button(obj, "Test", NULL, NULL);
111 ui_grid_sp(obj, 0, 4, 4); 111 ui_button(obj, "Test", NULL, NULL);
112 ui_label(obj, "Name");
113 ui_textfield(obj, NULL);
114 ui_newline(obj); 112 ui_newline(obj);
115 ui_label(obj, "Email");
116 ui_textfield(obj, NULL);
117 ui_end(obj);
118 113
119 ui_separator(obj); 114 ui_layout_gridwidth(obj, 2);
120 115 ui_button(obj, "Test", NULL, NULL);
121 ui_layout_fill(obj, FALSE);
122 ui_grid_sp(obj, 0, 4, 4);
123 ui_checkbox(obj, "Shit", NULL);
124 ui_newline(obj);
125 ui_checkbox(obj, "Nein", NULL);
126 ui_checkbox(obj, "Nein", NULL);
127 ui_checkbox(obj, "Nein", NULL);
128 ui_end(obj);
129
130 ui_separator(obj);
131
132 ui_layout_fill(obj, FALSE);
133 ui_grid_sp(obj, 0, 4, 4);
134 ui_radiobutton(obj, "better", &radio);
135 ui_newline(obj);
136 ui_radiobutton(obj, "smarter", &radio);
137 ui_newline(obj);
138 ui_radiobutton(obj, "awesome", &radio);
139 ui_end(obj);
140
141 ui_space(obj);
142
143 ui_button(obj, "OK", action_button, NULL);
144 ui_button(obj, "Activate", action_button2, NULL);
145 116
146 ui_end(obj); 117 ui_end(obj);
147 //*/ 118 //*/
148 119
149 ui_show(obj); 120 ui_show(obj);

mercurial