alias test { dialog -m test test }
dialog test {
title ""
option pixels
size -1 -1 306 95
text "Enter the text:", 1, 14 12 280 16
edit "", 2, 10 32 290 21, autohs optional
button "&OK", 3, 142 65 76 23, ok default
button "&Cancel", 4, 223 65 76 23, cancel
}
on *:dialog:test:*:*:{
if ($devent == init) { did -f $dname 1 }
elseif ($devent == sclick) && ($did == 3) { echo Return: $did(2) }
elseif ($devent == edit) && ($did == 2) { echo Return: $did(2) }
}