| 1124 #ifdef UI_WIN32 |
1124 #ifdef UI_WIN32 |
| 1125 |
1125 |
| 1126 void application_startup(UiEvent *event, void *data) { |
1126 void application_startup(UiEvent *event, void *data) { |
| 1127 UiObject *obj = ui_window("Test w32", NULL); |
1127 UiObject *obj = ui_window("Test w32", NULL); |
| 1128 ui_button(obj, .label = "Test", .hfill = TRUE, .hexpand = TRUE, .colspan = 3, .margin = 10); |
1128 ui_button(obj, .label = "Test", .hfill = TRUE, .hexpand = TRUE, .colspan = 3, .margin = 10); |
| 1129 ui_newline(obj); |
1129 ui_button(obj, .label = "Test 2-1", .margin_left = 10); |
| 1130 ui_button(obj, .label = "Test 2-1", .margin_top = 10); |
1130 ui_button(obj, .label = "Test 2-2", .hfill = TRUE, .hexpand = TRUE, .margin_left = 20); |
| 1131 ui_button(obj, .label = "Test 2-2", .hfill = TRUE, .hexpand = TRUE, .margin_top = 20); |
1131 ui_button(obj, .label = "Test 2-3", .margin_left = 30); |
| 1132 ui_button(obj, .label = "Test 2-3", .margin_top = 30); |
|
| 1133 ui_newline(obj); |
|
| 1134 ui_button(obj, .label = "Test 3XX", .colspan = 3, .fill = TRUE); |
1132 ui_button(obj, .label = "Test 3XX", .colspan = 3, .fill = TRUE); |
| 1135 ui_show(obj); |
1133 ui_show(obj); |
| 1136 } |
1134 } |
| 1137 |
1135 |
| 1138 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { |
1136 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { |