Table of Contents

Interface IWindow

A PowerBuilder window.

Inherited Members
IUiObjectWithLayoutInfo.IsRightAligned
IUiObjectWithLayoutInfo.IsRightToLeftLayout
IUiObjectWithLayoutInfo.IsRightToLeftReading
IUiObjectBase.ObjectName
IUiObjectBase.AttachedText
IUiObjectBase.Text
IUiObjectBase.WindowExtendedStyle
IUiObjectBase.WindowStyle
IUiObjectBase.WindowClassRegExp
IUiObjectBase.WindowId
IUiObjectBase.MouseMove(Location)
IUiObjectBase.IsFocused
IUiObjectBase.NativeClass
IUiObjectBase.WindowTitleRegExp
IUiObjectBase.Handle
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IDoubleClickable.DoubleClick(MouseButton)
IDoubleClickable.DoubleClick(ClickArgs)
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportSendKeys.SendKeys(string, KeyModifier)
ISupportSendKeys.SendKeys(string)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop, DragAndDropArgs)
IEnabledProvider.IsEnabled
IVisibleProvider.IsVisible
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
ITestObjectDescriber.Describe<TChild>(IDescription)
Namespace: HP.LFT.SDK.PowerBuilder
Assembly: HP.LFT.SDK.dll
Syntax
public interface IWindow : IUiObjectWithLayoutInfo, IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ITopLevelObject, ITestObject, ITestObjectDescriber

Properties

HasBorder

Indicates whether the window has a thin-line border.

Declaration
bool HasBorder { get; }
Property Value
Type Description
bool

HasCaption

Indicates whether the window has a title bar.

Declaration
bool HasCaption { get; }
Property Value
Type Description
bool

HasSizebox

Indicates whether the window has a sizing border.

Declaration
bool HasSizebox { get; }
Property Value
Type Description
bool

HasSystemMenu

Indicates whether the window has a window menu on its title bar.

Declaration
bool HasSystemMenu { get; }
Property Value
Type Description
bool

IsActive

Indicates whether the window is the foreground object (currently active).

Declaration
bool IsActive { get; }
Property Value
Type Description
bool

IsChildWindow

Indicates whether the window is a child window.

Declaration
bool IsChildWindow { get; }
Property Value
Type Description
bool

IsMaximizable

Indicates whether the window can be maximized.

Declaration
bool IsMaximizable { get; }
Property Value
Type Description
bool

IsMdiChildWindow

Indicates whether the window is a multiple-document interface (MDI) child window.

Declaration
bool IsMdiChildWindow { get; }
Property Value
Type Description
bool

IsMinimizable

Indicates whether the window can be minimized.

Declaration
bool IsMinimizable { get; }
Property Value
Type Description
bool

IsOwnedWindow

Indicates whether the window has an owner window.

Declaration
bool IsOwnedWindow { get; }
Property Value
Type Description
bool

IsPopupWindow

Indicates whether the window is a pop-up window.

Declaration
bool IsPopupWindow { get; }
Property Value
Type Description
bool

IsToolWindow

Indicates whether the window is a tool window (a floating toolbar).

Declaration
bool IsToolWindow { get; }
Property Value
Type Description
bool

IsTopmost

Indicates whether the window is placed above all non-topmost windows and remains in place, even when the object is deactivated.

Declaration
bool IsTopmost { get; }
Property Value
Type Description
bool

WindowState

The current window state. Possible values: WindowState.

Declaration
WindowState WindowState { get; }
Property Value
Type Description
WindowState

Methods

Activate()

Activates the window.

Declaration
void Activate()

Activate(MouseButton)

Activates the window using the specified mouse button.

Declaration
void Activate(MouseButton button)
Parameters
Type Name Description
MouseButton button

The mouse button used to click the window. Possible values: MouseButton.

Close()

Closes the window.

Declaration
void Close()

Maximize()

Maximizes the window to fill the entire screen.

Declaration
void Maximize()

Minimize()

Minimizes the window to an icon.

Declaration
void Minimize()

Move(Point)

Moves the window to the specified absolute location on the screen with a Point object.

Declaration
void Move(Point point)
Parameters
Type Name Description
Point point

Absolute pixel location (X,Y) on the screen

Move(int, int)

Moves the window to the specified absolute location on the screen with X,Y coordinates.

Declaration
void Move(int x, int y)
Parameters
Type Name Description
int x

The X coordinate to move to.

int y

The Y coordinate to move to.

Resize(Size)

Resizes the window to the specified Size.

Declaration
void Resize(Size size)
Parameters
Type Name Description
Size size

The size to resize to (in pixels).

Resize(int, int)

Resizes the window to the specified dimensions by width and height values.

Declaration
void Resize(int width, int height)
Parameters
Type Name Description
int width

Width value (in pixels).

int height

Height value (in pixels).

Restore()

Restores the window to its previous size.

Declaration
void Restore()

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)