Select your printer model

Parameters are refined by the selected printer.

createTextArea method


Adds the window setting to the command buffer.

A maximum of up to four windows can be set.

Syntax

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

Parameter

number

Value

Description

Integer value from 1 to 4

Specifies the window number.

x

Value

Description

Integer value from 1 to 44

Specifies the x-coordinate on the customer display of window origin.

y

Value

Description

Integer value from 1 to 19

Specifies the y-coordinate on the customer display of window origin.

width

Value

Description

Integer value from 1 to 44

Specifies the window width.

height

Value

Description

Integer value from 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

Exception

Return value

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

When setting an additional window, take care that the already-set window and the setting range on the customer display do not overlap.

 

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