Lines Matching full:choice
89 #define print_item(index, choice, selected) \ argument
92 do_print_item(menu, item_str(), choice, selected, !item_is_tag(':')); \
176 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local
234 /* Set choice to default item */ in dialog_menu()
237 choice = item_n(); in dialog_menu()
240 if ((scroll <= choice) && (scroll + max_choice > choice) && in dialog_menu()
243 choice = choice - scroll; in dialog_menu()
247 if ((choice >= max_choice)) { in dialog_menu()
248 if (choice >= item_count() - max_choice / 2) in dialog_menu()
251 scroll = first_item = choice - max_choice / 2; in dialog_menu()
252 choice = choice - scroll; in dialog_menu()
257 print_item(first_item + i, i, i == choice); in dialog_menu()
266 wmove(menu, choice, item_x + 1); in dialog_menu()
278 for (i = choice + 1; i < max_choice; i++) { in dialog_menu()
299 print_item(scroll + choice, choice, FALSE); in dialog_menu()
302 if (choice < 2 && scroll) { in dialog_menu()
308 choice = MAX(choice - 1, 0); in dialog_menu()
311 print_item(scroll+choice, choice, FALSE); in dialog_menu()
313 if ((choice > max_choice - 3) && in dialog_menu()
321 choice = MIN(choice + 1, max_choice - 1); in dialog_menu()
330 if (choice > 0) in dialog_menu()
331 choice--; in dialog_menu()
342 if (choice + 1 < max_choice) in dialog_menu()
343 choice++; in dialog_menu()
347 choice = i; in dialog_menu()
349 print_item(scroll + choice, choice, TRUE); in dialog_menu()
384 item_set(scroll + choice); in dialog_menu()