SWTTabControl Class

Description

SWTTabControl is the class for tab controls in an SWT multi-page dialog.

Availability

This class is supported only on the Open Agent.

Inheritance

SWTTabControl is derived the PageList class.

Identification of SWTTabControl pages

In SWTTabControl methods, you can invoke a tab directly using the tab item, or you can use the tab folder hierarchy. By default, Silk Test Classic records tab items directly. However, you can set record and replay options for the Open Agent to use the tab folder hierarchy.

Example

The following example records tab items:

SwtTestApplication.Control.StandardCtrlSample.Pick()
SWTControls.SWTTabControl1.TabFolder.Select()
SWTControls.SWTTabControl1.TabFolder.ScrollableControl1.TabFolder.SWTTabControl1.Tab11.Select()

The following example records tab folder actions:

SwtTestApplication.Control.StandardCtrlSample.Pick()
SWTControls.SWTTabControl1.Select("TabFolder")
SWTControls.SWTTabControl1.TabFolder.ScrollableControl1.TabFolder.SWTTabControl1.Select("Tab 1")

Methods

SWTTabControl inherits all of its methods from the PageList class.

Properties

In addition to the properties it inherits from the PageList class, SWTTabControl has the following properties: