Lines Matching refs:width
29 int dialog_inputbox(unsigned char *title, unsigned char *prompt, int height, int width, unsigned char *result)
38 if (width < 0) {
41 width = MAX(i,j) + 4;
43 width = MAX(width,24);
45 if (width > COLS)
46 width = COLS;
50 x = DialogX ? DialogX : (COLS - width)/2;
55 draw_shadow(stdscr, y, x, height, width);
57 dialog = newwin(height, width, y, x);
60 fprintf(stderr, "\nnewwin(%d,%d,%d,%d) failed, maybe wrong dims\n", height,width,y,x);
65 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
69 for (i = 0; i < width-2; i++)
74 for (i = 0; i < width-2; i++)
79 wmove(dialog, 0, (width - strlen(title))/2 - 1);
86 print_autowrap(dialog, prompt, height-1, width-2, width, 1, 2, TRUE, FALSE);
89 box_width = width-6;
92 box_x = (width - box_width)/2;
95 display_helpline(dialog, height-1, width);
97 x = width/2-11;