Share via


LineDisplayProperties.CurrentWindow Property

2/27/2008

Holds the current window to which text is displayed.

Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)

Syntax

'Declaration
Public Property CurrentWindow As Integer
public int CurrentWindow { get; set; }
public:
property int CurrentWindow {
    int get ();
    void set (int value);
}
/** @property */
public int get_CurrentWindow ()

/** @property */
public void set_CurrentWindow (int value)
public function get CurrentWindow () : int

public function set CurrentWindow (value : int)

Remarks

Several properties are associated with each window: Rows, Columns, CursorRow, CursorColumn, CursorUpdate, CursorType, MarqueeFormat, MarqueeType, MarqueeUnitWait, MarqueeRepeatWait, and InterCharacterWait.

When the application sets CurrentWindow, it changes the current window (for display purposes) and sets the associated properties to their values for this window.

Setting a window does not refresh its viewport. If this window and another window’s viewports overlap, and the other window has changed the viewport, then the application can call the RefreshWindow method to restore this window’s viewport contents.

Accessing CurrentWindow may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

CurrentWindow has been set to a value that isn’t valid.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

LineDisplayProperties Class
LineDisplayProperties Members
Microsoft.PointOfService.BaseServiceObjects Namespace
LineDisplayBase.CurrentWindow Property