.\" Generated by the Allegro makedoc utility .TH find_dialog_focus 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME find_dialog_focus \- Searches the dialog for the object which has the input focus. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int find_dialog_focus(DIALOG *dialog); .SH DESCRIPTION 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)); .SH SEE ALSO .BR do_dialog (3alleg4), .BR init_dialog (3alleg4), .BR offer_focus (3alleg4)