Lines Matching refs:scroll

111 static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x,  in print_arrows()  argument
120 if (scroll > 0) { in print_arrows()
136 if ((height < item_no) && (scroll + height < item_no)) { in print_arrows()
169 static void do_scroll(WINDOW *win, int *scroll, int n) in do_scroll() argument
175 *scroll = *scroll + n; in do_scroll()
187 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local
250 scroll = *s_scroll; in dialog_menu()
251 if ((scroll <= choice) && (scroll + max_choice > choice) && in dialog_menu()
252 (scroll >= 0) && (scroll + max_choice <= item_count())) { in dialog_menu()
253 first_item = scroll; in dialog_menu()
254 choice = choice - scroll; in dialog_menu()
256 scroll = 0; in dialog_menu()
260 scroll = first_item = item_count() - max_choice; in dialog_menu()
262 scroll = first_item = choice - max_choice / 2; in dialog_menu()
263 choice = choice - scroll; in dialog_menu()
273 print_arrows(dialog, item_count(), scroll, in dialog_menu()
290 item_set(scroll + i); in dialog_menu()
297 item_set(scroll + i); in dialog_menu()
309 print_item(scroll + choice, choice, FALSE); in dialog_menu()
312 if (choice < 2 && scroll) { in dialog_menu()
314 do_scroll(menu, &scroll, -1); in dialog_menu()
316 print_item(scroll, 0, FALSE); in dialog_menu()
321 print_item(scroll+choice, choice, FALSE); in dialog_menu()
324 (scroll + max_choice < item_count())) { in dialog_menu()
326 do_scroll(menu, &scroll, 1); in dialog_menu()
328 print_item(scroll+max_choice - 1, in dialog_menu()
336 if (scroll > 0) { in dialog_menu()
337 do_scroll(menu, &scroll, -1); in dialog_menu()
338 print_item(scroll, 0, FALSE); in dialog_menu()
347 if (scroll + max_choice < item_count()) { in dialog_menu()
348 do_scroll(menu, &scroll, 1); in dialog_menu()
349 print_item(scroll+max_choice-1, in dialog_menu()
359 print_item(scroll + choice, choice, TRUE); in dialog_menu()
361 print_arrows(dialog, item_count(), scroll, in dialog_menu()
387 *s_scroll = scroll; in dialog_menu()
390 item_set(scroll + choice); in dialog_menu()
411 *s_scroll = scroll; in dialog_menu()
414 item_set(scroll + choice); in dialog_menu()