;This will check for any mouse event on that (@View) particular window, so make sure this piece of code is on top.
menu @View {
;It check in particular for the rclick event (right click mouse event)
rclick:/dialog -m text_search text_search
}
;after this i guess what it does cause it was you that done it
Dialog text_search {
title "Text searching"
size -1 -1 400 110
edit "",1, 15 30 150 20 %searchterm
button "Up",2, 1 75 120 25,
button "Down",3, 130 75 120 25,
button "Close",4, 260 75 120 25, CANCEL
}
on 1:dialog:text_search:sclick:2: {
;/echo -a $did(1).text
/findtext $did(1).text
}
on 1:dialog:text_search:sclick:3: {
;/echo -a $did(1).text
/findtext -n $did(1).text
}