Select your printer model

Parameters are refined by the selected printer.

createWindow method


Adds window configuration to the command buffer.

Up to four windows can be configured.

Syntax

 
createWindow(number, x, y, width, height, scrollMode);

Parameter

number

Value

Description

1 to 4

Specifies the window number.

x

Value

Description

1 to 44

Specifies the origin of the X coordinate.

y

Value

Description

1 to 19

Specifies the origin of the Y coordinate.

width

Value

Description

1 to 44

Specifies the window width.

height

Value

Description

1 to 19

Specifies the window height.

scrollMode

Value

Description

SCROLL_OVERWRITE

  • When the current display position is at the rightmost position of the upper line, move the display position to the leftmost position of the lower line.
  • When the current display position is at the rightmost position of the lower line, move the display position to the leftmost position of the upper line.
  • The character currently displayed at the target position will be overwritten.

SCROLL_VERTICAL

  • When the current display position is at the rightmost position of the upper line, move the display position to the leftmost position of the lower line.
  • When the current display position is at the rightmost position of the lower line, moves the characters currently on the lower line to the upper line, erases the contents of the lower line, and then moves the display position to the leftmost position of the upper line.

SCROLL_HORIZONTAL

  • When a new character is displayed while the current display position is at the rightmost position, shifts the entire line by one character to the left and displays the new character at the rightmost position.
  • Does not feed the line.

Return value

Return value

Object type

Display object

Display

Supplementary explanation

To add a window, be careful so that the existing window(s) should not be overlapped by the new window on the customer display.

 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for JavaScript

Jump to the top