Table of Contents

Interface IWindow

Namespace
HP.LFT.SDK.PowerBuilder
Assembly
HP.LFT.SDK.dll

A PowerBuilder window.

public interface IWindow : IUiObjectWithLayoutInfo, IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ITopLevelObject, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

HasBorder

Indicates whether the window has a thin-line border.

bool HasBorder { get; }

Property Value

bool

HasCaption

Indicates whether the window has a title bar.

bool HasCaption { get; }

Property Value

bool

HasSizebox

Indicates whether the window has a sizing border.

bool HasSizebox { get; }

Property Value

bool

HasSystemMenu

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

bool HasSystemMenu { get; }

Property Value

bool

IsActive

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

bool IsActive { get; }

Property Value

bool

IsChildWindow

Indicates whether the window is a child window.

bool IsChildWindow { get; }

Property Value

bool

IsMaximizable

Indicates whether the window can be maximized.

bool IsMaximizable { get; }

Property Value

bool

IsMdiChildWindow

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

bool IsMdiChildWindow { get; }

Property Value

bool

IsMinimizable

Indicates whether the window can be minimized.

bool IsMinimizable { get; }

Property Value

bool

IsOwnedWindow

Indicates whether the window has an owner window.

bool IsOwnedWindow { get; }

Property Value

bool

IsPopupWindow

Indicates whether the window is a pop-up window.

bool IsPopupWindow { get; }

Property Value

bool

IsToolWindow

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

bool IsToolWindow { get; }

Property Value

bool

IsTopmost

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

bool IsTopmost { get; }

Property Value

bool

WindowState

The current window state. Possible values: WindowState.

WindowState WindowState { get; }

Property Value

WindowState

Methods

Activate()

Activates the window.

void Activate()

Activate(MouseButton)

Activates the window using the specified mouse button.

void Activate(MouseButton button)

Parameters

button MouseButton

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

Close()

Closes the window.

void Close()

Maximize()

Maximizes the window to fill the entire screen.

void Maximize()

Minimize()

Minimizes the window to an icon.

void Minimize()

Move(Point)

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

void Move(Point point)

Parameters

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.

void Move(int x, int y)

Parameters

x int

The X coordinate to move to.

y int

The Y coordinate to move to.

Resize(Size)

Resizes the window to the specified Size.

void Resize(Size size)

Parameters

size Size

The size to resize to (in pixels).

Resize(int, int)

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

void Resize(int width, int height)

Parameters

width int

Width value (in pixels).

height int

Height value (in pixels).

Restore()

Restores the window to its previous size.

void Restore()