Lines Matching refs:choice
102 #define print_item(index, choice, selected) \ argument
105 do_print_item(menu, item_str(), choice, selected, !item_is_tag(':')); \
187 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local
248 choice = item_n(); in dialog_menu()
251 if ((scroll <= choice) && (scroll + max_choice > choice) && in dialog_menu()
254 choice = choice - scroll; in dialog_menu()
258 if ((choice >= max_choice)) { in dialog_menu()
259 if (choice >= item_count() - max_choice / 2) in dialog_menu()
262 scroll = first_item = choice - max_choice / 2; in dialog_menu()
263 choice = choice - scroll; in dialog_menu()
268 print_item(first_item + i, i, i == choice); in dialog_menu()
277 wmove(menu, choice, item_x + 1); in dialog_menu()
289 for (i = choice + 1; i < max_choice; i++) { in dialog_menu()
309 print_item(scroll + choice, choice, FALSE); in dialog_menu()
312 if (choice < 2 && scroll) { in dialog_menu()
318 choice = MAX(choice - 1, 0); in dialog_menu()
321 print_item(scroll+choice, choice, FALSE); in dialog_menu()
323 if ((choice > max_choice - 3) && in dialog_menu()
331 choice = MIN(choice + 1, max_choice - 1); in dialog_menu()
340 if (choice > 0) in dialog_menu()
341 choice--; in dialog_menu()
352 if (choice + 1 < max_choice) in dialog_menu()
353 choice++; in dialog_menu()
357 choice = i; in dialog_menu()
359 print_item(scroll + choice, choice, TRUE); in dialog_menu()
390 item_set(scroll + choice); in dialog_menu()
414 item_set(scroll + choice); in dialog_menu()