Select your printer model

Parameters are refined by the selected printer.

addCreateWindow


Adds window configuration to the command buffer.

Syntax

 
- (int)addCreateWindow:(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 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

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

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

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

EPOS2_PARAM_DEFAULT

Specifies 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

Memory necessary for processing could not be allocated.

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

Jump to the top