119 ui_close(event->obj); |
119 ui_close(event->obj); |
120 } |
120 } |
121 |
121 |
122 void action_toolbar_dialog(UiEvent *event, void *userdata) { |
122 void action_toolbar_dialog(UiEvent *event, void *userdata) { |
123 |
123 |
124 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); |
124 UiObject *dialog = ui_dialog_window(event->obj, .title = "Dialog Window", .lbutton1 = "Cancel 1", .lbutton2 = "Btn 2", .rbutton3 = "Btn3", .rbutton4 = "Login 4", .onclick = action_dialog_button, .default_button = 4, .show_closebutton = UI_OFF); |
125 |
125 |
126 ui_vbox(dialog, .margin = 10, .spacing = 10) { |
126 ui_vbox(dialog, .margin = 10, .spacing = 10) { |
127 ui_label(dialog, .label = "Enter password:"); |
127 ui_label(dialog, .label = "Enter password:"); |
128 ui_passwordfield(dialog, .varname = "password"); |
128 ui_passwordfield(dialog, .varname = "password"); |
129 } |
129 } |