Hello everybody,
we are using the standard tab construct offered by plex in the java variant.
this works fine.
is it possible to change the name of the tab dynamically?
thank you for any tips.
best wishes, tobias
TabStrip.Scripts
Receives a Tab number and a TabText and sets the label on that Tab.
FIELDS/Tab – tab identifier
FIELDS/TabText – selected tab text
Tab_SetLabelPVTab_SetLabel
{ pv.awt.PVTab tab=(pv.awt.PVTab)ObUserAPI.getComponentFromName(getFunction(), new ObCharFld("*Current"), &(1:).toString()); tab.setLabelAt(&(3:).toString(), &(2:).getValue()-1);}
Thank you.
We got it, too.
We have to change the FIELDS/TabText and then remove the tab and add the tab.
Only with removing the tab and adding it again the caption changed...
like in winc variant I think you need to 'repaint' the window..it works for you nw because part of adding a tab is the repainting
probably