Select your printer model

Parameters are refined by the selected printer.

addCreateWindow


Adds window configuration to the command buffer.

Up to four windows can be configured.

Syntax

 
public int addCreateWindow(int number, int x, int y, int width, int height, int scrollMode) throw Epos2Exception

Parameter

number

Specifies the window number.

Value

Description

Integer from 1 to 4

Window number

x

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

Value

Description

Integer from 1 to 44

X coordinate on the customer display

y

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

Value

Description

Integer from 1 to 19

Y coordinate on the customer display

width

Specifies the window width.

Value

Description

Integer from 1 to 44

Window width

height

Specifies the window height.

Value

Description

Integer from 1 to 19

Window height

scrollMode

Specifies the window scroll mode.

Value

Description

LineDisplay.SCROLL_OVERWRITE

When the current display position is at the rightmost position of the upper line, displaying a new character moves 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, displaying a new character moves the display position to the leftmost position of the upper line.

LineDisplay.SCROLL_VERTICAL

When the current display position is at the rightmost position of the upper line, displaying a new character moves 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, displaying a new character scrolls up the characters on the lower line and clears the lower line.

LineDisplay.SCROLL_HORIZONTAL

When the current display position is at the rightmost position, displaying a new character scrolls all the characters already displayed on the cursor line to the left by one character and the new character is displayed at the rightmost position.

LineDisplay.PARAM_DEFAULT

Specifies the default value (Overwrite).

Exception

When the process fails, Epos2Exception with one of the following error value occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

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 Android

Jump to the top