A dialog function executes while a user dialog is visible.