Lines Matching defs:dialog
4 * pause.c -- implements the pause dialog
27 #include <dialog.h>
71 WINDOW *dialog;
109 /* center dialog box on screen */
113 dialog = dlg_new_window(height, width, y, x);
114 dlg_register_window(dialog, "pause", binding);
115 dlg_register_buttons(dialog, "pause", buttons);
118 nodelay(dialog, TRUE);
122 (void) werase(dialog);
123 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr);
125 dlg_draw_title(dialog, title);
126 dlg_draw_helpline(dialog, FALSE);
128 (void) wattrset(dialog, dialog_attr);
129 dlg_print_autowrap(dialog, prompt, height, width);
131 dlg_draw_box2(dialog,
143 (void) wmove(dialog, gauge_y + MARGIN, 4);
144 (void) wattrset(dialog, title_attr);
147 (void) waddch(dialog, ' ');
149 (void) wmove(dialog, gauge_y + MARGIN, (width / 2) - 2);
150 (void) wprintw(dialog, "%3d", seconds);
159 wattroff(dialog, A_REVERSE);
161 (void) wattrset(dialog, A_REVERSE);
163 (void) wmove(dialog, gauge_y + MARGIN, 4);
165 chtype ch = winch(dialog);
169 (void) waddch(dialog, ch);
174 dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
175 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
178 (void) wrefresh(dialog);
179 dlg_trace_win(dialog);
188 key = dlg_mouse_wgetch_nowait(dialog, &fkey);
200 dlg_del_window(dialog); /* delete this window */
208 dlg_draw_buttons(dialog,
217 dlg_draw_buttons(dialog,
240 dlg_del_window(dialog);