Lines Matching refs:dialog
4 * guage.c -- implements the gauge dialog
27 #include <dialog.h>
120 WINDOW *dialog = obj->obj.win;
123 if (dialog != 0 && obj->obj.input != 0) {
124 (void) werase(dialog);
125 dlg_draw_box(dialog, 0, 0, obj->height, obj->width, dialog_attr, border_attr);
127 dlg_draw_title(dialog, obj->title);
129 wattrset(dialog, dialog_attr);
130 dlg_draw_helpline(dialog, FALSE);
131 dlg_print_autowrap(dialog, obj->prompt, obj->height, obj->width);
133 dlg_draw_box(dialog,
144 (void) wmove(dialog, obj->height - 3, 4);
145 wattrset(dialog, gauge_attr);
148 (void) waddch(dialog, ' ');
150 (void) wmove(dialog, obj->height - 3, (obj->width / 2) - 2);
151 (void) wprintw(dialog, "%3d%%", obj->percent);
160 wattroff(dialog, A_REVERSE);
162 wattrset(dialog, A_REVERSE);
164 (void) wmove(dialog, obj->height - 3, 4);
166 chtype ch2 = winch(dialog);
170 (void) waddch(dialog, ch2);
173 (void) wrefresh(dialog);
192 * worse-written clones of 'dialog' assumes the number is missing.
291 WINDOW *dialog;
300 /* center dialog box on screen */
304 dialog = dlg_new_window(height, width, y, x);
310 obj->obj.win = dialog;