Lines Matching defs:dialog
4 * guage.c -- implements the gauge dialog
27 #include <dialog.h>
121 WINDOW *dialog = obj->obj.win;
124 if (dialog != 0 && obj->obj.input != 0) {
125 (void) werase(dialog);
126 dlg_draw_box2(dialog, 0, 0, obj->height, obj->width, dialog_attr,
129 dlg_draw_title(dialog, obj->title);
131 (void) wattrset(dialog, dialog_attr);
132 dlg_draw_helpline(dialog, FALSE);
133 dlg_print_autowrap(dialog, obj->prompt, obj->height, obj->width);
135 dlg_draw_box2(dialog,
147 (void) wmove(dialog, obj->height - 3, 4);
148 (void) wattrset(dialog, gauge_attr);
151 (void) waddch(dialog, ' ');
153 (void) wmove(dialog, obj->height - 3, (obj->width / 2) - 2);
154 (void) wprintw(dialog, "%3d%%", obj->percent);
163 wattroff(dialog, A_REVERSE);
165 (void) wattrset(dialog, A_REVERSE);
167 (void) wmove(dialog, obj->height - 3, 4);
169 chtype ch2 = winch(dialog);
173 (void) waddch(dialog, ch2);
176 (void) wrefresh(dialog);
195 * worse-written clones of 'dialog' assumes the number is missing.
320 /* center dialog box on screen */
323 WINDOW *dialog = dlg_new_window(height, width, y, x);
324 obj->obj.win = dialog;