Home | History | Annotate | Download | only in lxdialog

Lines Matching refs:max_choice

188 	int first_item =  0, max_choice;
201 max_choice = MIN(menu_height, item_count());
251 if ((scroll <= choice) && (scroll + max_choice > choice) &&
252 (scroll >= 0) && (scroll + max_choice <= item_count())) {
258 if ((choice >= max_choice)) {
259 if (choice >= item_count() - max_choice / 2)
260 scroll = first_item = item_count() - max_choice;
262 scroll = first_item = choice - max_choice / 2;
267 for (i = 0; i < max_choice; i++) {
287 i = max_choice;
289 for (i = choice + 1; i < max_choice; i++) {
295 if (i == max_choice)
296 for (i = 0; i < max_choice; i++) {
304 if (i < max_choice ||
323 if ((choice > max_choice - 3) &&
324 (scroll + max_choice < item_count())) {
328 print_item(scroll+max_choice - 1,
329 max_choice - 1, FALSE);
331 choice = MIN(choice + 1, max_choice - 1);
335 for (i = 0; (i < max_choice); i++) {
346 for (i = 0; (i < max_choice); i++) {
347 if (scroll + max_choice < item_count()) {
349 print_item(scroll+max_choice-1,
350 max_choice - 1, FALSE);
352 if (choice + 1 < max_choice)