dialog dotw {
title "Days"
size -1 -1 61 125
option dbu
button "Sunday", 1, 10 10 37 12
button "Monday", 2, 10 25 37 12
button "Tuesday", 3, 10 40 37 12
button "Wednesday", 4, 10 55 37 12
button "Thursday", 5, 10 70 37 12
button "Friday", 6, 10 85 37 12
button "Saturday", 7, 10 100 37 12
}
menu status {
days of the week:$dialog(dotw,dotw,-3)
}
on *:dialog:dotw:sclick:*:{
; fill your variable
var %i $did($did)
; Do stuff with the variable
echo %i
; close the dialog
dialog -x dotw
}