here is easy example
alias test {
dialog -m test test
}
dialog test {
title "Test Dialog"
size -1 -1 202 89
option pixels
button "Press Me", 1, 23 12 65 25
}
on 1:dialog:test:sclick:*: {
if ($did == 1) {
//echo -a Hello this is test dialog
}
}
every object on dialog has itz ID
this time ID of button is 1 ( button "Press Me", 1, ....)
as you see, first number infront every object declares itz ID
so you see on even SCLICK (button click) if ID 1 (button) is pressed do things
on 1:dialog:dialognamet:SCLICK:*: {
if ($did == 1) {
//echo -a Hello this is test dialog
}
}