Lines Matching defs:dialog
24 #include <dialog.h>
628 CleanupResult(int code, WINDOW *dialog, char *prompt, DIALOG_VARS * save_vars)
632 if (dialog != 0)
633 dlg_del_window(dialog);
671 * Display a dialog box for entering a date
724 WINDOW *dialog;
812 dialog = dlg_new_window(height, width,
815 dlg_register_window(dialog, "calendar", binding);
816 dlg_register_buttons(dialog, "calendar", buttons);
819 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr);
820 dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
821 dlg_draw_title(dialog, title);
823 dlg_attrset(dialog, dialog_attr); /* text mainbox */
824 dlg_print_autowrap(dialog, prompt, height, width);
833 dialog,
843 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
847 dialog,
856 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
860 dialog,
869 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
872 dlg_trace_win(dialog);
879 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
881 dlg_set_focus(dialog, obj->window);
883 key = dlg_mouse_wgetch(dialog, &fkey);
889 key = dlg_lookup_key(dialog, Mouse2Key(key), &fkey);
918 dlg_will_resize(dialog);
924 dlg_del_window(dialog);
1016 return CleanupResult(result, dialog, prompt, &save_vars);