132 UiObject *obj = ui_window("Test", NULL); |
132 UiObject *obj = ui_window("Test", NULL); |
133 |
133 |
134 MyDocument *doc = create_doc(); |
134 MyDocument *doc = create_doc(); |
135 ui_attach_document(obj->ctx, doc); |
135 ui_attach_document(obj->ctx, doc); |
136 |
136 |
137 ui_tabview(obj, .spacing=10, .margin=10) { |
137 ui_tabview(obj, .spacing=10, .margin=10, .tabview = UI_TABVIEW_NAVIGATION_SIDE) { |
138 ui_tab(obj, "Tab 1") { |
138 ui_tab(obj, "Tab 1") { |
139 ui_vbox(obj, .fill = UI_OFF, .margin = 15, .spacing = 15) { |
139 ui_vbox(obj, .fill = UI_OFF, .margin = 15, .spacing = 15) { |
140 ui_button(obj, .label = "Test Button", .icon = "application-x-generic", .onclick = action_button); |
140 ui_button(obj, .label = "Test Button", .icon = "application-x-generic", .onclick = action_button); |
141 ui_togglebutton(obj, .label = "Toggle"); |
141 ui_togglebutton(obj, .label = "Toggle"); |
142 ui_checkbox(obj, .label = "My Checkbox"); |
142 ui_checkbox(obj, .label = "My Checkbox"); |
176 ui_radiobutton(obj, .label = "Radio 1", .varname = "radio"); |
176 ui_radiobutton(obj, .label = "Radio 1", .varname = "radio"); |
177 ui_radiobutton(obj, .label = "Radio 2", .varname = "radio"); |
177 ui_radiobutton(obj, .label = "Radio 2", .varname = "radio"); |
178 ui_radiobutton(obj, .label = "Radio 3", .varname = "radio"); |
178 ui_radiobutton(obj, .label = "Radio 3", .varname = "radio"); |
179 } |
179 } |
180 } |
180 } |
|
181 } |
|
182 ui_tab(obj, "Tab 2") { |
|
183 ui_button(obj, .label = "Button"); |
181 } |
184 } |
182 } |
185 } |
183 |
186 |
184 /* |
187 /* |
185 |
188 |