Lines Matching defs:dialog
24 #include <dialog.h>
363 CleanupResult(int code, WINDOW *dialog, char *prompt, DIALOG_VARS * save_vars)
365 if (dialog != 0)
366 dlg_del_window(dialog);
378 * Display a dialog box for entering a date
430 WINDOW *dialog;
487 dialog = dlg_new_window(height, width,
490 dlg_register_window(dialog, "calendar", binding);
491 dlg_register_buttons(dialog, "calendar", buttons);
494 dlg_draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
495 dlg_draw_bottom_box(dialog);
496 dlg_draw_title(dialog, title);
498 wattrset(dialog, dialog_attr); /* text mainbox */
499 dlg_print_autowrap(dialog, prompt, height, width);
507 dialog,
515 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
519 dialog,
527 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
531 dialog,
539 return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
548 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
550 dlg_set_focus(dialog, obj->window);
552 key = dlg_mouse_wgetch(dialog, &fkey);
557 key = dlg_lookup_key(dialog, key - M_EVENT, &fkey);
590 dlg_del_window(dialog);
678 return CleanupResult(result, dialog, prompt, &save_vars);