LineDisplayBase.CurrentWindow Property
2/27/2008
Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)
Syntax
'Declaration
Public Overrides Property CurrentWindow As Integer
public override int CurrentWindow { get; set; }
public:
virtual property int CurrentWindow {
int get () override;
void set (int value) override;
}
/** @property */
public int get_CurrentWindow ()
/** @property */
public void set_CurrentWindow (int value)
public override function get CurrentWindow () : int
public override 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.
LineDisplayBase class verifies that the device has been opened, then retrieves or sets the value of LineDisplayProperties.CurrentWindow.
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. |
CurrentWindow is initialized to 0 (zero) by the LineDisplayProperties class. If the value of CurrentWindow changes, the LineDisplayProperties class queues a CurrentWindowChangedEvent event to the service object.
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
LineDisplayBase Class
LineDisplayBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
LineDisplay.CurrentWindow Property