Searched refs:max_choice (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/dialog/ |
H A D | checklist.c | 101 print_list(ALL_DATA * data, int choice, int scrollamt, int max_choice) in print_list() argument 107 for (i = 0; i < max_choice; i++) { in print_list() 119 (long) (scrollamt + max_choice), in print_list() 199 int max_choice; in dlg_checklist() local 310 max_choice = MIN(all.use_height, item_no); in dlg_checklist() 311 max_choice = MAX(max_choice, 1); in dlg_checklist() 365 scrollamt = MIN(scrollamt, max_choice + item_no - 1); in dlg_checklist() 366 if (choice >= (max_choice + scrollamt - 1)) { in dlg_checklist() 367 scrollamt = MAX(0, choice - max_choice + 1); in dlg_checklist() 368 choice = max_choice - 1; in dlg_checklist() [all …]
|
H A D | treeview.c | 104 int max_choice) in print_list() argument 111 for (i = 0; i < max_choice; i++) { in print_list() 123 (long) (scrollamt + max_choice), in print_list() 203 int max_choice; in dlg_treeview() local 297 max_choice = MIN(use_height, item_no); in dlg_treeview() 338 if (choice >= (max_choice + scrollamt)) { in dlg_treeview() 339 scrollamt = choice - max_choice + 1; in dlg_treeview() 340 choice = max_choice - 1; in dlg_treeview() 353 print_list(&all, choice, scrollamt, max_choice); in dlg_treeview() 377 if (i < max_choice) { in dlg_treeview() [all …]
|
H A D | menubox.c | 244 print_menu(ALL_DATA * data, int choice, int scrollamt, int max_choice, bool is_inputmenu) in print_menu() argument 248 for (i = 0; i < max_choice; i++) { in print_menu() 276 scrollamt + max_choice, in print_menu() 359 int max_choice; in dlg_menu() local 439 max_choice = MIN(all.menu_height, in dlg_menu() 442 max_choice /= INPUT_ROWS; in dlg_menu() 508 if (choice - scrollamt >= max_choice) { in dlg_menu() 509 scrollamt = choice - (max_choice - 1); in dlg_menu() 510 choice = max_choice - 1; in dlg_menu() 513 print_menu(&all, choice, scrollamt, max_choice, is_inputmenu); in dlg_menu() [all …]
|