Padsetpadoffset; Padsetpixel - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

padSetPadOffset

This command sets the offset value of the
horizontal and vertical points retrieved from
the Transaction Team device's touch surface
area when mapping the device's smaller
surface area to a larger surface area when in
PenWare100 emulation mode. For example,
say a touch surface area is approximately
9.5x5.5 centimeters in size. The Transaction
Team 1500's touch surface area is
approximately 7x3 centimeters in size. To
center the smaller Transaction Team 1500's
touch surface area within the larger touch
surface area you would use an offset of
187x220. To place the Transaction Team
1500's touch surface area at the lower right
corner of a larger touch surface area you
would use an offset of 357x441. To place the
Transaction Team 1500's touch surface area
at the upper left corner of a larger touch
surface area you would use an offset of 0x0,
meaning no offset is used. This command
only works if the Transaction Team device is
in emulation mode. If the device is not in
emulation mode this command has no effect.
To put the device into emulation mode use the padSetPadMode command (see page 3-57).
Syntax
BOOL padSetPadOffset(
int OffsetX,
int OffsetY
)
Parameter
OffsetX
OffsetY
Returns
Returns TRUE if successful, FALSE otherwise.
See Also
padSetPadMode, padSetClearButton

padSetPixel

Sets a pixel on the LCD screen at the location specified by X and Y to the current foreground color.
Syntax
BOOL padSetPixel(
int X,
int Y
)
Parameter
X
Y
Returns
Returns TRUE if successful, FALSE otherwise.
3 - 58
If the touch surface area has a resolution of 1024x1024 with a DPI of 273x455:
The TT1500's touch surface
area has a resolution of
1024x1024 with a DPI of
419x799
To map the TT1500's touch
surface area to the upper left of
this touch surface area, use:
offset X = 0
offset Y = 0
Description
Horizontal offset measure in the PenWare100's resolution
Vertical offset measure in the PenWare100's resolution
Description
Horizontal coordinate of the pixel to set
Vertical coordinate of the pixel to set
To map the TT1500's touch
surface area to the center of this
touch surface area, use:
offset X = 187
offset Y = 220
To map the TT1500's touch
surface area to the lower right of
this touch surface area, use:
offset X = 357
offset Y = 441

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents