Searches the dialog for the object which has the input focus. allegro game programming library.
#include <allegro.h>
int find_dialog_focus(DIALOG *dialog);
Searches the dialog for the object which has the input focus, returning an index or -1 if the focus is not set. This is useful if you are calling do_dialog() several times in a row and want to leave the focus in the same place it was when the dialog was last displayed, as you can call do_dialog(dlg, find_dialog_focus(dlg));
do_dialog(3alleg4), init_dialog(3alleg4), offer_focus(3alleg4)