MoveableWin Class

Description

MoveableWin is the class for windows that typically can move.

Inheritance

MoveableWin derives from the AnyWin class. The following classes derive from the MoveableWin class:

  • ChildWin
  • DialogBox
  • MainWin

Identification of MoveableWin Parts

Any MoveableWin has the following predefined identifiers for referring to parts of the window:

Part Definition
BottomEdge The bottom edge of the window (Windows only)
BottomLeftCorner The bottom-left corner of the window (Windows only)
BottomRightCorner The bottom-right corner of the window (Windows only)
Caption The caption of the window
ClientArea The inner portion of the window, excluding any caption, menubar, or border
CloseBox The box used to close the window (Windows only)
LeftEdge The left edge of the window (Windows only)
MaximizeBox The box used to maximize the window
MenuBar The menu bar on the window
MinimizeBox The box used to reduce the window to an icon
RightEdge The right edge of the window (Windows only)
RestoreBox The box used to restore the window’s previous size
TopEdge The top edge of the window (Windows only)
TopLeftCorner The top-left corner of the window (Windows only)
TopRightCorner The top-right corner of the window (Windows only)

To refer to these parts, you specify the window and then the part, separated by the dot operator, and then call the method. For example:

Print (TextEditor.MenuBar.GetContents ())

In general, you do not need to refer to the window parts; Silk Test Classic provides methods that access them directly. For example, calling the Click method on the Maximize box is the same as calling the Maximize method.

Methods and Properties

In addition to the methods and properties it inherits from the AnyWin class, MoveableWin has the following methods and properties: