Phantom Documentation

[Help Home] [Phantom Home]
PageList (TabCtrl) Functions

The following functions are for use with the PageList type class.

            Select
            GetCount
            GetActiveTab
            GetTabText

Example Code

# 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();


See Also: PageList (TabCtrl) Class



Copyright 2000-2011 Phantom Automated Solutions