Lines Matching defs:choice

78 print_item(WINDOW *win, DIALOG_FORMITEM * item, int scrollamt, bool choice)
107 this_item_attribute = choice
135 print_form(WINDOW *win, DIALOG_FORMITEM * item, int total, int scrollamt, int choice)
141 count += print_item(win, item + n, scrollamt, n == choice);
151 set_choice(DIALOG_FORMITEM item[], int choice, int item_no, bool * noneditable)
157 if (!is_readonly(&item[choice])) {
158 result = choice;
192 is_first_field(DIALOG_FORMITEM item[], int choice)
195 while (choice >= 0) {
196 if (item[choice].text_flen > 0) {
199 --choice;
206 is_last_field(DIALOG_FORMITEM item[], int choice, int item_no)
209 while (choice < item_no) {
210 if (item[choice].text_flen > 0) {
213 ++choice;
227 int *choice,
230 int old_choice = *choice;
236 *choice += stepsize;
237 if (*choice < 0) {
238 *choice = item_no - 1;
240 } else if (*choice >= item_no) {
241 *choice = 0;
244 } while ((*choice != old_choice) && is_readonly(&(item[*choice])));
246 if (item[*choice].text_flen > 0) {
247 int lo = MIN(item[*choice].name_y, item[*choice].text_y);
248 int hi = MAX(item[*choice].name_y, item[*choice].text_y);
250 if (old_choice == *choice)
268 *choice = old_choice;
277 } while (*choice != old_choice);
279 return (old_choice != *choice) || (old_scroll != *scrollamt);
283 * Scroll to the next page, putting the choice at the first editable field
288 scroll_next(WINDOW *win, DIALOG_FORMITEM item[], int stepsize, int *choice, int *scrollamt)
291 int old_choice = *choice;
317 *choice = n;
322 if (old_choice != *choice)
325 *scrollamt = *choice;
331 result = (old_choice != *choice) || (old_scroll != *scrollamt);
499 int choice = dlg_default_formitem(items);
585 choice = set_choice(items, choice, item_no, &non_editable);
586 current = &items[choice];
594 print_form(form, items, item_no, scrollamt, choice);
627 current = &items[choice];
701 if (state == sTEXT && !is_first_field(items, choice)) {
711 if (choice != new_choice) {
712 print_item(form, items + choice, scrollamt, FALSE);
713 choice = new_choice;
746 if (state == sTEXT && !is_last_field(items, choice, item_no)) {
753 if (state == sTEXT && choice) {
754 print_item(form, items + choice, scrollamt, FALSE);
755 choice = 0;
802 print_item(form, items + choice, scrollamt, FALSE);
803 choice = n;
817 new_choice = choice;
820 if (choice != new_choice) {
821 choice = new_choice;
833 if (choice != new_choice) {
834 choice = new_choice;
867 *current_item = choice;
913 int choice;
950 &choice);
958 dlg_add_help_formitem(&result, &help_result, &listitems[choice]);