40 } |
40 } |
41 |
41 |
42 void application_startup(UiEvent* event, void* data) { |
42 void application_startup(UiEvent* event, void* data) { |
43 UiObject* obj = ui_window("Test", NULL); |
43 UiObject* obj = ui_window("Test", NULL); |
44 |
44 |
|
45 /* |
45 ui_button(obj, "Button1", action1, "action1"); |
46 ui_button(obj, "Button1", action1, "action1"); |
46 ui_button(obj, "Button2", action1, "action2"); |
47 ui_button(obj, "Button2", action1, "action2"); |
|
48 ui_layout_fill(obj, TRUE); |
47 ui_button(obj, "Button3", action1, "action3"); |
49 ui_button(obj, "Button3", action1, "action3"); |
|
50 */ |
|
51 |
|
52 UI_GRID_SP(obj, 10, 5, 20) { |
|
53 ui_button(obj, "Button1", action1, "action1"); |
|
54 ui_button(obj, "Button2", action1, "action2"); |
|
55 ui_layout_hexpand(obj, 1); |
|
56 ui_button(obj, "Button3", action1, "action3"); |
|
57 ui_newline(obj); |
|
58 |
|
59 ui_button(obj, "Button4", action1, "action4"); |
|
60 ui_layout_gridwidth(obj, 2); |
|
61 ui_button(obj, "Button5_", action1, "action5"); |
|
62 ui_newline(obj); |
|
63 |
|
64 ui_button(obj, "Very Long Button Label Text ____________ Test", action1, "test"); |
|
65 } |
48 |
66 |
49 ui_show(obj); |
67 ui_show(obj); |
50 } |
68 } |
51 |
69 |
52 |
70 |