1find_dialog_focus(3) Allegro manual find_dialog_focus(3)
2
3
4
6 find_dialog_focus - Searches the dialog for the object which has the
7 input focus. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 int find_dialog_focus(DIALOG *dialog);
14
16 Searches the dialog for the object which has the input focus, returning
17 an index or -1 if the focus is not set. This is useful if you are call‐
18 ing do_dialog() several times in a row and want to leave the focus in
19 the same place it was when the dialog was last displayed, as you can
20 call do_dialog(dlg, find_dialog_focus(dlg));
21
22
24 do_dialog(3), init_dialog(3), offer_focus(3)
25
26
27
28Allegro version 4.2.3 find_dialog_focus(3)