Select your printer model
<window>
This element allows you to create or delete a window on the display, and change the current window.
- Specify "number", "x", "y", "width", and "height" to create a new window.
- Specify "true/1" for "destroy" to destroy the window specified by "number".
- To change the current window to another window, specify only "number".
Attribute
number
Attribute value |
Description |
---|---|
"1" to "4" |
Specifies the window number. |
x
Attribute value |
Description |
---|---|
"1" to "44" |
Specifies the origin of the X coordinate. |
y
Attribute value |
Description |
---|---|
"1" to "19" |
Specifies the origin of the Y coordinate. |
width
Attribute value |
Description |
---|---|
"1" to "44" |
Specifies the window width. |
height
Attribute value |
Description |
---|---|
"1" to "19" |
Specifies the window height. |
scrollmode
Attribute value |
Description |
---|---|
"overwrite" (default) |
When the cursor is at the rightmost position of the upper line, displaying a new character moves the cursor to the leftmost position of the lower line. When the cursor is at the rightmost position of the lower line, displaying a new character moves the cursor to the leftmost position of the upper line. |
"v_scroll" |
When the cursor is at the rightmost position of the upper line, displaying a new character moves the cursor to the leftmost position of the lower line. When the cursor 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. |
"h_scroll" |
When the cursor 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. |
destroy
Attribute value |
Description |
---|---|
"true" / "1" |
Destroys the window specified by "number" |
"false" / "0" (default) |
Not destroy |
Error status
Error |
Description |
---|---|
"EX_INVALID_VALUE" |
The "x", "y", "width", and "height" specified for a new window overlap with those of an existing window. |
"EDSP_INVALID_WINDOW" |
When changing the current window, the destination window does not exist. |
Sample program
- Defines "window 1" that has 10 width and 2 height starting from the upper left of the display, and scrolls vertically.
-
<window number="1" x="1" y="1" width="10" height="2" scrollmode="v_scroll"/>
- Defines "window 2" that has 10 width and 2 height starting from the center of the display, and scrolls vertically.
-
<window number="2" x="11" y="1" width="10" height="2" scrollmode="v_scroll"/>
- Changes the current window to "window 1"
-
<window number="1"/>
- Destroys "window 2"
-
<window number="2" destroy="true"/>
Supplementary explanation
- When adding a new window, make sure that the window area on the customer display does not overlap with that of existing window(s)
- If you specify "number", "x", "y", "width", and "height", and specify "true/1" in "destroy", neither of the processes (create and destroy window) is performed.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
- Introduction
- help
- XML for Controlling Printer
- XML for Controlling Customer Display
- Appendix
- XML Supported Printers
- Supported Elements List
- Printer-specific Support Information
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60II (Receipt)
- TM-P60II (Peeler)
- TM-P80
- TM-P80II
- TM-T20III
- TM-T82III
- TM-T88VI
- TM-T88VII
- TM-L100
- TM-U220II
- TM-H6000V
- TM-H6000VI
- TM-L90
- TM-L90 4xx
- TM-T20
- TM-T20II
- TM-T70
- TM-T70II
- TM-T82II
- TM-T83II
- TM-T88IV
- TM-T88V
- TM-T90
- TM-U220
- TM-U330
- TM-H6000IV
- TM-L90-i
- TM-T20II-i
- TM-T70-i
- TM-T82II-i
- TM-T83II-i
- TM-T88V-i
- TM-T88VI-iHUB
- TM-U220-i
- TM-U220IIB-i
- TM-T70II-DT
- TM-T70II-DT2
- TM-T88V-DT
- TM-T88VI-DT2
- TM-H6000IV-DT
- Usage Restrictions by Firmware Version
- ePOS-Print Settings