LineDisplay.CurrentWindow Property (POS for .NET v1.12 SDK Documentation)
2/27/2008
Gets or sets the active window to which text is displayed.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Property CurrentWindow As Integer
public abstract int CurrentWindow { get; set; }
public:
virtual property int CurrentWindow {
int get () abstract;
void set (int value) abstract;
}
/** @property */
public abstract int get_CurrentWindow ()
/** @property */
public abstract void set_CurrentWindow (int value)
public abstract function get CurrentWindow () : int
public abstract 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 active window (for display) and sets the associated properties to their values for this window.
Setting a window does not update 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.
CurrentWindow is typically initialized to 0, the device window. CurrentWindow is updated when the application calls the CreateWindow or DestroyWindow methods.
Accessing CurrentWindow may cause a PosControlException to be thrown with the following ErrorCode.
Value |
Meaning |
Illegal |
CurrentWindow has been set to a value that is not 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
LineDisplay Class
LineDisplay Members
Microsoft.PointOfService Namespace
Rows
LineDisplay.Columns Property
CursorRow
CursorColumn
CursorUpdate
CursorType
MarqueeFormat
MarqueeType
MarqueeUnitWait
MarqueeRepeatWait
InterCharacterWait
LineDisplay.CreateWindow Method
LineDisplay.DestroyWindow Method
LineDisplay.RefreshWindow Method