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.
96 * Print the scroll indicators.
98 static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x,
107 if (scroll > 0) {
123 if ((height < item_no) && (scroll + height < item_no)) {
157 /* scroll up n lines (n may be negative) */
158 static void do_scroll(WINDOW *win, int *scroll, int n)
164 *scroll = *scroll + n;
176 int key = 0, button = 0, scroll = 0, choice = 0;
238 /* get the saved scroll info */
239 scroll = *s_scroll;
240 if ((scroll <= choice) && (scroll + max_choice > choice) &&
241 (scroll >= 0) && (scroll + max_choice <= item_count())) {
242 first_item = scroll;
243 choice = choice - scroll;
245 scroll = 0;
249 scroll = first_item = item_count() - max_choice;
251 scroll = first_item = choice - max_choice / 2;
252 choice = choice - scroll;
262 print_arrows(dialog, item_count(), scroll,
279 item_set(scroll + i);
286 item_set(scroll + i);
299 print_item(scroll + choice, choice, FALSE);
302 if (choice < 2 && scroll) {
304 do_scroll(menu, &scroll, -1);
306 print_item(scroll, 0, FALSE);
311 print_item(scroll+choice, choice, FALSE);
314 (scroll + max_choice < item_count())) {
316 do_scroll(menu, &scroll, 1);
318 print_item(scroll+max_choice - 1,
326 if (scroll > 0) {
327 do_scroll(menu, &scroll, -1);
328 print_item(scroll, 0, FALSE);
337 if (scroll + max_choice < item_count()) {
338 do_scroll(menu, &scroll, 1);
339 print_item(scroll+max_choice-1,
349 print_item(scroll + choice, choice, TRUE);
351 print_arrows(dialog, item_count(), scroll,
380 /* save scroll info */
381 *s_scroll = scroll;
384 item_set(scroll + choice);