Lines Matching defs:dialog
24 #include <dialog.h>
25 #include "dialog.priv.h"
32 * Display a dialog box with two buttons - Yes and No
41 * Display a dialog box with two buttons - No and Yes
53 WINDOW *dialog;
73 /* center dialog box on screen */
81 dialog = newwin(height, width, y, x);
82 if (dialog == NULL) {
87 keypad(dialog, TRUE);
89 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
90 wattrset(dialog, border_attr);
91 wmove(dialog, height-3, 0);
92 waddch(dialog, ACS_LTEE);
94 waddch(dialog, ACS_HLINE);
95 wattrset(dialog, dialog_attr);
96 waddch(dialog, ACS_RTEE);
97 wmove(dialog, height-2, 1);
99 waddch(dialog, ' ');
102 wattrset(dialog, title_attr);
103 wmove(dialog, 0, (width - strlen(title))/2 - 1);
104 waddch(dialog, ' ');
105 waddstr(dialog, title);
106 waddch(dialog, ' ');
108 wattrset(dialog, dialog_attr);
109 wmove(dialog, 1, 2);
110 print_autowrap(dialog, prompt, height-1, width-2, width, 1, 2, TRUE, FALSE);
112 display_helpline(dialog, height-1, width);
121 print_button(dialog, " No ", y, x+13, button);
122 print_button(dialog, " Yes " , y, x, !button);
124 wmove(dialog, y, x+16);
126 wmove(dialog, y, x+2);
127 wrefresh(dialog);
129 key = wgetch(dialog);
133 delwin(dialog);
138 delwin(dialog);
153 delwin(dialog);
165 delwin(dialog);