Posted by: hs2
« on: October 18, 2007, 09:45:00 AM »Hi Evan, I'm glad that it works for you !
I'm using a similar wrapper now following your idea for bookmark support and toolbar check resp. auto activation.
Just for completeness reasons:
I'm using a similar wrapper now following your idea for bookmark support and toolbar check resp. auto activation.
Just for completeness reasons:
Code: [Select]
_command void hs2_goto_curr_ref ( boolean forceActive = false ) name_info(','VSARG2_REQUIRES_EDITORCTL|VSARG2_READ_ONLY)
{
if ( !forceActive )
{
wid := _tbGetWid ("_tbtagrefs_form");
if ( !wid || !(_tbIsWidActive(wid) && wid.p_enabled) )
{
message ("References toolbar not active.");
return;
}
}
push_bookmark ();
if ( !curr_ref( false, true ) )
{
if ( forceActive )
{
activate_references();
cursor_data();
}
center_line ();
}
else
{
// undo bookmark
pop_bookmark ();
message ("No (more) references.");
}
}
HS2