dialog newdialog {
title "New"
size -1 -1 85 20
option dbu
button "&find", 1, 1 1 1 1
button "re&place", 2, 1 1 1 1
}
menu status {
dialog:dialog -md new newdialog
}
on 1:dialog:new:init:0:{
did -h new 1,2
}
on 1:dialog:new:sclick:*:{
if $did == 1 { echo -s find! }
elseif $did == 2 { echo -s replace! }
}