#
Include Phantom Target Declarations
use "PhantomTarget.dec";
System("PhantomTarget.exe");
# Open the Tab
control widnow
PhantomTarget._Controls._PageList.Select();
# Create some tabs
Page.Edit1.SetText("Tab 1");
Page._Insert.Click();
Page.Edit1.SetText("Tab 2");
Page._Insert.Click();
Page.Edit1.SetText("Tab 3");
Page._Insert.Click();
# Get the tab count
int iCount = Page.SysTabControl321.GetCount();
# Cycle through
tabs and get information
for(int i = 0; i < iCount; i++){
Page.SysTabControl321.SelectTab(i);
disp(Page.SysTabControl321.GetTabText(i));
disp(Page.SysTabControl321.GetActiveTab());
}
# Exit out
Page.OK.Click();
PhantomTarget.Close();
|