application/main.c

branch
newapi
changeset 345
d2ccc543f432
parent 344
870dd3d41d83
child 347
6f0d0b0d97f5
equal deleted inserted replaced
344:870dd3d41d83 345:d2ccc543f432
83 ui_close(event->obj); 83 ui_close(event->obj);
84 } 84 }
85 85
86 void action_toolbar_dialog(UiEvent *event, void *userdata) { 86 void action_toolbar_dialog(UiEvent *event, void *userdata) {
87 87
88 UiObject *dialog = ui_dialog_window(event->obj, .title = "Dialog Window", .lbutton1 = "Cancel 1", .lbutton2 = "Btn2", .rbutton3 = "Btn3", .rbutton4 = "Login 4", .onclick = action_dialog_button, .show_closebutton = UI_OFF); 88 UiObject *dialog = ui_dialog_window(event->obj, .title = "Dialog Window", .lbutton1 = "Cancel 1", .lbutton2 = "Btn2", .rbutton3 = "Btn3", .rbutton4 = "Login 4", .onclick = action_dialog_button, .default_button = 4, .show_closebutton = UI_OFF);
89 89
90 ui_vbox(dialog, .margin = 10, .spacing = 10) { 90 ui_vbox(dialog, .margin = 10, .spacing = 10) {
91 ui_label(dialog, .label = "Enter password:"); 91 ui_label(dialog, .label = "Enter password:");
92 ui_passwordfield(dialog, .varname = "password"); 92 ui_passwordfield(dialog, .varname = "password");
93 } 93 }

mercurial