At some point (perhaps in V19) you might need to call activate_tool_window instead of activate_toolbar
#include "slick.sh"
#pragma option(strictsemicolons,on)
#pragma option(strict,on)
#pragma option(autodecl,off)
#pragma option(strictparens,on)
_command void find_symbol_word_at_cursor() name_info(','VSARG2_REQUIRES_EDITORCTL|VSARG2_CMDLINE)
{
int xx;
_control ctl_search_for;
_str s = cur_word(xx);
int wid = activate_tool_window('_tbfind_symbol_form', true, 'ctl_search_for');
wid.ctl_search_for.p_text = s;
wid.ctl_search_for._set_sel(1,length(s)+1);
}
_command void find_symbol_in_current_file() name_info(','VSARG2_REQUIRES_EDITORCTL|VSARG2_CMDLINE)
{
int xx;
_control ctl_search_for;
_control ctl_lookin;
int wid = activate_tool_window('_tbfind_symbol_form', true, 'ctl_search_for');
wid.ctl_lookin.p_text = '<Current File>';
//wid.ctl_search_for.p_text = '';
//wid.ctl_search_for._set_sel(1,1);
}