Lines Matching refs:choice
49 * Print list item. The 'selected' parameter is true if 'choice' is the
57 int choice,
71 (void) wmove(win, choice, 0);
75 (void) wmove(win, choice, data->check_x);
85 (void) wmove(win, choice, data->item_x + INDENT * i);
90 (void) wmove(win, choice, data->item_x + INDENT * depths);
102 int choice,
116 i, i == choice);
136 check_hotkey(DIALOG_LISTITEM * items, int choice)
142 ? items[choice].text
143 : items[choice].name))) {
201 int choice = dlg_default_listitem(items);
339 /* ensure we are scrolled to show the current choice */
340 if (choice >= (max_choice + scrollamt)) {
341 scrollamt = choice - max_choice + 1;
342 choice = max_choice - 1;
355 print_list(&all, choice, scrollamt, max_choice);
362 wmove(dialog, box_y + choice + 1, box_x + all.check_x + 2);
375 choice = (key - KEY_MAX);
376 print_list(&all, choice, scrollamt, max_choice);
392 int current = scrollamt + choice;
412 print_list(&all, choice, scrollamt, max_choice);
424 for (j = scrollamt + choice + 1; j < item_no; j++) {
432 for (j = 0; j <= scrollamt + choice; j++) {
472 if (choice)
480 i = MIN(choice + max_choice, item_no - scrollamt - 1);
483 i = choice - 1;
484 if (choice == 0 && scrollamt == 0)
488 i = choice + 1;
489 if (scrollamt + choice >= item_no - 1)
500 if (i != choice) {
504 choice = 0;
506 choice = max_choice - 1;
509 print_list(&all, choice, scrollamt, max_choice);
511 choice = i;
512 print_list(&all, choice, scrollamt, max_choice);
563 *current_item = (scrollamt + choice);