Status Bar Refresh

If I display the value of a variable in the status bar (a very useful feature) and within a script I change the value of the variable, is there a way of forcing a status bar refresh so that the new value appears immediately?

Use cmd.UpdateToggle():

function OnClick(clickData)
{
	var tab = clickData.func.sourcetab;
	var cmd = clickData.func.command;

	var tabVars = tab.vars;
	tabVars.Set("ShowExtraInfo","Test");

	cmd.UpdateToggle();
}

From a non-script command, the @toggle:update modifier does the same thing:

@set tab:ShowExtraInfo=Test
@toggle:update
1 Like