dialogfunc definition
A dialog function executes while a
UserDialog
is visible.