From within an ON DIALOG event, you can use $dname instead of the name of the dialog, or can get values by using $did($did). But from outside the $devent, you must use $did(Example,number)

Code:
on *:dialog:Example:init:*: {
;Here's where you set values that can't be done when setting up dialog

did -o example 1 1 This overwrites the text label
}


Code:
on *:dialog:Example:sclick:*: {

echo -s Dialog: $dname Event: $devent $iif($did,DID: $did did(did):  $did($did) state: $did($did).state sel: $did($did).sel $did($did).seltext , Clicked on dialog background outside any "Controls" )

if ($did == 4) {
echo -s You clicked on the $did($did) button
}

if ($did == 2-3) { echo -a Clicked on the radio button named $did(Example,$did)
}