Lines Matching refs:choice

52  * Print list item.  The 'selected' parameter is true if 'choice' is the
60 int choice,
74 (void) wmove(win, choice, 0);
78 (void) wmove(win, choice, data->check_x);
91 (void) wmove(win, choice, data->item_x);
101 print_list(ALL_DATA * data, int choice, int scrollamt, int max_choice)
112 i, i == choice);
132 check_hotkey(DIALOG_LISTITEM * items, int choice)
138 ? items[choice].text
139 : items[choice].name))) {
196 int choice = dlg_default_listitem(items);
349 /* ensure we are scrolled to show the current choice */
351 if (choice >= (max_choice + scrollamt - 1)) {
352 scrollamt = MAX(0, choice - max_choice + 1);
353 choice = max_choice - 1;
355 print_list(&all, choice, scrollamt, max_choice);
367 wmove(dialog, all.box_y + choice + 1, all.box_x + all.check_x + 2);
381 choice = (key - KEY_MAX);
382 print_list(&all, choice, scrollamt, max_choice);
400 int current = scrollamt + choice;
410 &items[scrollamt + choice],
412 choice, TRUE);
427 choice, TRUE);
432 print_list(&all, choice, scrollamt, max_choice);
446 for (j = scrollamt + choice + 1; j < item_no; j++) {
454 for (j = 0; j <= scrollamt + choice; j++) {
494 if (choice)
502 i = MIN(choice + max_choice, item_no - scrollamt - 1);
505 i = choice - 1;
506 if (choice == 0 && scrollamt == 0)
510 i = choice + 1;
511 if (scrollamt + choice >= item_no - 1)
522 if (i != choice) {
527 choice = 0;
529 choice = max_choice - 1;
532 print_list(&all, choice, scrollamt, max_choice);
534 choice = i;
535 print_list(&all, choice, scrollamt, max_choice);
585 *current_item = (scrollamt + choice);