Lines Matching +full:button +full:-
4 * yesno.c -- implements the yes/no box
6 * Copyright 1999-2019,2020 Thomas E. Dickey
31 * Display a dialog box with two buttons - Yes and No.
36 /* *INDENT-OFF* */ in dialog_yesno()
44 /* *INDENT-ON* */ in dialog_yesno()
48 int button = dlg_default_button(); in dialog_yesno() local
92 page = height - (1 + 3 * MARGIN); in dialog_yesno()
94 height - 2 * MARGIN, 0, in dialog_yesno()
95 buttons, button, FALSE, width); in dialog_yesno()
108 if (!dlg_button_key(result, &button, &key, &fkey)) in dialog_yesno()
119 button = dlg_next_button(buttons, button); in dialog_yesno()
120 if (button < 0) in dialog_yesno()
121 button = 0; in dialog_yesno()
123 height - 2, 0, in dialog_yesno()
124 buttons, button, in dialog_yesno()
128 button = dlg_prev_button(buttons, button); in dialog_yesno()
129 if (button < 0) in dialog_yesno()
130 button = 0; in dialog_yesno()
132 height - 2, 0, in dialog_yesno()
133 buttons, button, in dialog_yesno()
138 result = dlg_yes_buttoncode(button); in dialog_yesno()
152 result = dlg_yes_buttoncode(key - M_EVENT); in dialog_yesno()
165 dlg_add_last_key(-1); in dialog_yesno()