Home | History | Annotate | Download | only in lxdialog

Lines Matching refs:dialog

22 #include "dialog.h"
38 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw,
42 print_position(dialog);
43 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
44 wrefresh(dialog);
49 * Display text from a file in a dialog box.
57 WINDOW *dialog, *box;
85 /* center dialog box on screen */
91 dialog = newwin(height, width, y, x);
92 keypad(dialog, TRUE);
97 box = subwin(dialog, boxh, boxw, y + 1, x + 1);
98 wattrset(box, dlg.dialog.atr);
99 wbkgdset(box, dlg.dialog.atr & A_COLOR);
104 draw_box(dialog, 0, 0, height, width,
105 dlg.dialog.atr, dlg.border.atr);
107 wattrset(dialog, dlg.border.atr);
108 mvwaddch(dialog, height - 3, 0, ACS_LTEE);
110 waddch(dialog, ACS_HLINE);
111 wattrset(dialog, dlg.dialog.atr);
112 wbkgdset(dialog, dlg.dialog.atr & A_COLOR);
113 waddch(dialog, ACS_RTEE);
115 print_title(dialog, title, width);
117 print_button(dialog, " Exit ", height - 2, width / 2 - 4, TRUE);
118 wnoutrefresh(dialog);
119 getyx(dialog, cur_y, cur_x); /* Save cursor position */
122 attr_clear(box, boxh, boxw, dlg.dialog.atr);
123 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x);
126 key = wgetch(dialog);
133 delwin(dialog);
140 refresh_text_box(dialog, box, boxh, boxw,
151 refresh_text_box(dialog, box, boxh, boxw,
186 print_position(dialog);
187 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
188 wrefresh(dialog);
197 refresh_text_box(dialog, box, boxh, boxw,
210 print_position(dialog);
211 wmove(dialog, cur_y, cur_x); /* Restore cursor position */
212 wrefresh(dialog);
221 refresh_text_box(dialog, box, boxh, boxw,
237 refresh_text_box(dialog, box, boxh, boxw,
248 refresh_text_box(dialog, box, boxh, boxw,
252 key = on_key_esc(dialog);
257 delwin(dialog);
263 delwin(dialog);