Select your printer model

Parameters are refined by the selected printer.

addCreateTextArea


Adds the window setting to the command buffer.

Up to four windows can be configured.

Syntax

 
- (int) addCreateTextArea:(long)number x:(long)x y:(long)y width:(long)width height:(long)height scrollMode:(int)scrollMode;

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

EPOS2_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.

EPOS2_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.

EPOS2_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.

EPOS2_PARAM_DEFAULT

Selects the default value (Overwrite)

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_MEMORY

Sufficient memory required for processing could not be allocated.

EPOS2_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 iOS

Jump to the top