Forum Discussion
TanyaYatskovska
Alumni
14 years agoHi Yugandhar,
We have posted an example of how to work with the CTabFolder control. Here is the example:
//JScript
function Test()
{
var obj = Sys.Process("Process").SWTObject("Shell", "Application").SWTObject("Composite", "", 5).SWTObject("Composite", "").SWTObject("CTabFolder", "", 6);
ClickTab(obj, "Tab 2");
}
function ClickTab(objCTabFolder, strTabName)
{
count = objCTabFolder.getItemCount();
for (var i = 0; i < count; i++)
{
TabItem = objCTabFolder.getItem(i);
if (TabItem.text == strTabName)
{
objCTabFolder.Click(TabItem.x, TabItem.y);
}
}
}