The request was for the MOUSE option on the dialog so your example does not stuck with this request.

ON *:DIALOG:dialogName:mouse:*: {
echo -s The current hover object is of type: $did($did).type
}

Why not the $did($did).type will NOT help into this event ? tell me one why.. or give me an other script way to have this result.