Lines Matching full:choice
81 #define print_item(index, choice, selected) \ argument
84 do_print_item(menu, item_str(), choice, selected, !item_is_tag(':')); \
168 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local
226 /* Set choice to default item */ in dialog_menu()
229 choice = item_n(); in dialog_menu()
232 if ((scroll <= choice) && (scroll + max_choice > choice) && in dialog_menu()
235 choice = choice - scroll; in dialog_menu()
239 if ((choice >= max_choice)) { in dialog_menu()
240 if (choice >= item_count() - max_choice / 2) in dialog_menu()
243 scroll = first_item = choice - max_choice / 2; in dialog_menu()
244 choice = choice - scroll; in dialog_menu()
249 print_item(first_item + i, i, i == choice); in dialog_menu()
258 wmove(menu, choice, item_x + 1); in dialog_menu()
270 for (i = choice + 1; i < max_choice; i++) { in dialog_menu()
291 print_item(scroll + choice, choice, FALSE); in dialog_menu()
294 if (choice < 2 && scroll) { in dialog_menu()
300 choice = MAX(choice - 1, 0); in dialog_menu()
303 print_item(scroll+choice, choice, FALSE); in dialog_menu()
305 if ((choice > max_choice - 3) && in dialog_menu()
313 choice = MIN(choice + 1, max_choice - 1); in dialog_menu()
322 if (choice > 0) in dialog_menu()
323 choice--; in dialog_menu()
334 if (choice + 1 < max_choice) in dialog_menu()
335 choice++; in dialog_menu()
339 choice = i; in dialog_menu()
341 print_item(scroll + choice, choice, TRUE); in dialog_menu()
376 item_set(scroll + choice); in dialog_menu()