Hi
###################################
from org.csstudio.opibuilder.scriptUtil
import PVUtil
from org.csstudio.opibuilder.scriptUtil import ColorFontUtil
from org.csstudio.opibuilder.scriptUtil import DataUtil
from org.csstudio.opibuilder.scriptUtil import ScriptUtil
from org.csstudio.opibuilder.scriptUtil import ConsoleUtil
from org.eclipse.jface.dialogs import MessageDialog
xTab = display.getWidget("HarpTab")
pv0=PVUtil.getDouble(pvs[0])
pv1=PVUtil.getLong(pvs[1])
if(pv0==1):
xTab.setPropertyValue("enabled", True)
xTab.setPropertyValue("active_tab", pv1)
else:
xTab.setPropertyValue("enabled", False)
###########################################
The above script works as it selects the right index from
pv1.
However, the tab is selected but has not focus until
someone actually clicks on the Tab.
Any ideas on how this can be done inside my script?
Thanks