You could use the edit event.

on *:dialog:dcc_conf:edit:4:{
did -ra $dname 3 $did(4)
}