Lines Matching defs:dialog
27 #include <dialog.h>
480 * Display a dialog box and get the search term from user.
483 get_search_term(WINDOW *dialog, char *input, int height, int width)
508 getbegyx(dialog, old_y, old_x);
513 box_width = MIN(box_width, getmaxx(dialog) - 2 * MARGIN);
518 widget = dlg_new_modal_window(dialog,
656 * Display text from a file in a dialog box.
706 WINDOW *dialog;
748 dialog = dlg_new_window(height, width, y, x);
749 dlg_register_window(dialog, "textbox", binding);
750 dlg_register_buttons(dialog, "textbox", obj.buttons);
755 obj.text = dlg_sub_window(dialog, PAGE_LENGTH, PAGE_WIDTH, y + 1, x + 1);
759 dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, border2_attr);
760 dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
761 dlg_draw_title(dialog, title);
763 dlg_draw_buttons(dialog, PAGE_LENGTH + 2, 0, obj.buttons, button, FALSE, width);
764 (void) wnoutrefresh(dialog);
765 getyx(dialog, cur_y, cur_x); /* Save cursor position */
809 print_position(&obj, dialog, height, width);
810 (void) wmove(dialog, cur_y, cur_x); /* Restore cursor position */
811 wrefresh(dialog);
816 key = dlg_mouse_wgetch(dialog, &fkey);
840 dlg_draw_buttons(dialog,
849 dlg_draw_buttons(dialog,
951 dlg_del_window(dialog);
973 dlg_del_window(dialog);