Select your printer model

Parameters are refined by the selected printer.

addCreateTextArea


Adds the window setting to the command buffer.

A maximum of up to four windows can be set.

Syntax

 
public void addCreateTextArea(int number, int x, int y, int width, int height, int scrollMode) throws Epos2Exception

Parameter

number

Specifies the window number.

Value

Description

Integer from 1 to 4

Window number

x

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

Value

Description

Integer from 1 to 44

x-coordinate on customer display

y

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

Value

Description

Integer from 1 to 19

y-coordinate on 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

If character display is performed when the display position is at the upper right end, the display position moves to the lower left end, and if character display is performed when the display position is at the lower right end, the display position moves to the upper left end.

LineDisplay.SCROLL_VERTICAL

If character display is performed when the display position is at the upper right end, the display position moves to the lower left end, and if character display is performed when the display position is at the lower right end, the lower display characters that are already displayed are scrolled to the top, and the lower display is cleared.

LineDisplay.SCROLL_HORIZONTAL

If character display is performed when the display position is at the right end, all display characters that are already displayed in the row with the cursor are scrolled to the left by one character, and the new display characters are displayed at the right end.

LineDisplay.PARAM_DEFAULT

Selects 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

Sufficient memory required for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

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 Android

Jump to the top