alias support { if (!$dialog(support)) { dialog -m support support } }
dialog support {
title "Support"
size -1 -1 300 100
button "Start",1, 1 5 120 25
button "Verify",2, 1 35 120 25
button "Test",3, 1 65 120 25
button "Cancel",6, 130 65 100 25, cancel
}
on *:dialog:support:*:*: {
if ($devent == init) {
echo -st This will show up when you create the dialog.
}
if ($devent == sclick) {
if ($did == 1) { msg $active Hello! What can I help you with? }
elseif ($did == 2) { msg $active Could you please verify the the username and email address of your account for security purposes }
elseif ($did == 3) { echo -a Test Successful! | dialog -x $dname }
}
}