i didnt try to see if its working in $did maby it is maby it isnt
if he use $did command "if it work" he can get "the last tab activated" so his code will b something like "on *:DIALOG:test:sclick:291:"
he asked "so can you return the active tab ?" not "so can you return on activate tab ?"
to return the active tab from help file is $dialog() so his code can b
"
set %bla $dialog()
if (%bla == ID) { do stuff }
"
but i think that if $did is working on tabs it will b beter solution then $dialog()
or m i wrong ^^