Lines Matching refs:scroll

40  * Reset 'scroll' to 0 if the value from lxdialog.scrltmp is bogus.
43 * fscanf would read in 'scroll', and eventually that value would get used.
88 * Print the scroll indicators.
90 static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x,
99 if (scroll > 0) {
115 if ((height < item_no) && (scroll + height < item_no)) {
149 /* scroll up n lines (n may be negative) */
150 static void do_scroll(WINDOW *win, int *scroll, int n)
156 *scroll = *scroll + n;
168 int key = 0, button = 0, scroll = 0, choice = 0;
230 /* get the saved scroll info */
231 scroll = *s_scroll;
232 if ((scroll <= choice) && (scroll + max_choice > choice) &&
233 (scroll >= 0) && (scroll + max_choice <= item_count())) {
234 first_item = scroll;
235 choice = choice - scroll;
237 scroll = 0;
241 scroll = first_item = item_count() - max_choice;
243 scroll = first_item = choice - max_choice / 2;
244 choice = choice - scroll;
254 print_arrows(dialog, item_count(), scroll,
271 item_set(scroll + i);
278 item_set(scroll + i);
291 print_item(scroll + choice, choice, FALSE);
294 if (choice < 2 && scroll) {
296 do_scroll(menu, &scroll, -1);
298 print_item(scroll, 0, FALSE);
303 print_item(scroll+choice, choice, FALSE);
306 (scroll + max_choice < item_count())) {
308 do_scroll(menu, &scroll, 1);
310 print_item(scroll+max_choice - 1,
318 if (scroll > 0) {
319 do_scroll(menu, &scroll, -1);
320 print_item(scroll, 0, FALSE);
329 if (scroll + max_choice < item_count()) {
330 do_scroll(menu, &scroll, 1);
331 print_item(scroll+max_choice-1,
341 print_item(scroll + choice, choice, TRUE);
343 print_arrows(dialog, item_count(), scroll,
372 /* save scroll info */
373 *s_scroll = scroll;
376 item_set(scroll + choice);