Lines Matching defs:dialog
24 #include <dialog.h>
369 CleanupResult(int code, WINDOW *dialog, char *prompt, DIALOG_VARS * save_vars)
371 if (dialog != 0)
372 dlg_del_window(dialog);
384 * Display a dialog box for entering a date
436 WINDOW *dialog;
493 dialog = dlg_new_window(height, width,
496 dlg_register_window(dialog, "calendar", binding);
497 dlg_register_buttons(dialog, "calendar", buttons);
500 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr);
501 dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
502 dlg_draw_title(dialog, title);
504 (void) wattrset(dialog, dialog_attr); /* text mainbox */
505 dlg_print_autowrap(dialog, prompt, height, width);
513 dialog,
521 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
525 dialog,
533 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
537 dialog,
545 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
548 dlg_trace_win(dialog);
555 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
557 dlg_set_focus(dialog, obj->window);
559 key = dlg_mouse_wgetch(dialog, &fkey);
564 key = dlg_lookup_key(dialog, key - M_EVENT, &fkey);
597 dlg_del_window(dialog);
686 return CleanupResult(result, dialog, prompt, &save_vars);