Home | History | Annotate | Download | only in lxdialog

Lines Matching full:scroll

53  * Reset 'scroll' to 0 if the value from lxdialog.scrltmp is bogus.
56 * fscanf would read in 'scroll', and eventually that value would get used.
109 * Print the scroll indicators.
111 static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x,
120 if (scroll > 0) {
136 if ((height < item_no) && (scroll + height < item_no)) {
168 /* scroll up n lines (n may be negative) */
169 static void do_scroll(WINDOW *win, int *scroll, int n)
171 /* Scroll menu up */
175 *scroll = *scroll + n;
187 int key = 0, button = 0, scroll = 0, choice = 0;
249 /* get the saved scroll info */
250 scroll = *s_scroll;
251 if ((scroll <= choice) && (scroll + max_choice > choice) &&
252 (scroll >= 0) && (scroll + max_choice <= item_count())) {
253 first_item = scroll;
254 choice = choice - scroll;
256 scroll = 0;
260 scroll = first_item = item_count() - max_choice;
262 scroll = first_item = choice - max_choice / 2;
263 choice = choice - scroll;
273 print_arrows(dialog, item_count(), scroll,
290 item_set(scroll + i);
297 item_set(scroll + i);
309 print_item(scroll + choice, choice, FALSE);
312 if (choice < 2 && scroll) {
313 /* Scroll menu down */
314 do_scroll(menu, &scroll, -1);
316 print_item(scroll, 0, FALSE);
321 print_item(scroll+choice, choice, FALSE);
324 (scroll + max_choice < item_count())) {
325 /* Scroll menu up */
326 do_scroll(menu, &scroll, 1);
328 print_item(scroll+max_choice - 1,
336 if (scroll > 0) {
337 do_scroll(menu, &scroll, -1);
338 print_item(scroll, 0, FALSE);
347 if (scroll + max_choice < item_count()) {
348 do_scroll(menu, &scroll, 1);
349 print_item(scroll+max_choice-1,
359 print_item(scroll + choice, choice, TRUE);
361 print_arrows(dialog, item_count(), scroll,
386 /* save scroll info */
387 *s_scroll = scroll;
390 item_set(scroll + choice);
411 *s_scroll = scroll;
414 item_set(scroll + choice);