The text of a manual · part 8 of 10
TT Advantage Programmer's Guide, pages 71 to 80
Pages 71 to 80 of 92
The original document is the PDF (976 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the HHP TT3100 and Welch Allyn TT3100
Page 71
DisplayScreen
................................................................................................... 67
DrawLabel
................................................................................................... 67
DrawScreenHotSpot............................................................................................. 68 ErrorDescription ................................................................................................... 69 FontHeight
................................................................................................... 69
FontWidth
................................................................................................... 70
InvertControl
................................................................................................... 70
MagOff
................................................................................................... 71
MagOn
................................................................................................... 71
PadFontSize
................................................................................................... 72
RedrawScreen ................................................................................................... 72 RefreshListBox ................................................................................................... 73 ScreenStackClear ................................................................................................ 73 ShowError
................................................................................................... 73
ShrinkWrap
................................................................................................... 74
Signature
................................................................................................... 74
Smoothing
................................................................................................... 75
Terminate
................................................................................................... 75
MSR AccountNumber ................................................................................................... 76 AssignTracknames............................................................................................... 76 FirstName
................................................................................................... 77
LastName
................................................................................................... 77
Reset
................................................................................................... 77
Track1, Track2, Track3 ........................................................................................ 78
SigBox SigBox
................................................................................................... 79
TT Advantage relies on the methods and properties of the SigBox object to function. Most of the properties and methods of SigBox are accessed indirectly through the TT Advantage interface. For developers wanting to use the large
4-11
Page 72
number of methods and properties of SigBox directly, information about them can be found in the Software Developers Kit (SDK) documentation.
V.A. V.A. Commands relate specifically to an attached TT3100 Series terminal. Some of V.A. commands are used by TT Advantage to initialize communication with the terminal.
V.A.CurrentScreen Command Type: Object V.A.CurrentScreen is a form method holding information about the currently displayed form. V.ACurrentScreen gives access to all the properties and methods of a form. Parameters
Description
Values
None
RETURN VALUES None SEE ALSO Visual Basic Manuals: Forms EXAMPLE Dim CurForm as Form Set curForm = V.A.CurrentScreen
V.A.DisplayPreviousScreen Command Type: Method V.A.DisplayPreviousScreen navigates back to the previous screen. If the current screen is the first screen, TT Advantage terminates normally. Parameters
Description
None
RETURN VALUES None SEE ALSO None EXAMPLE V.A.DisplayPreviousScreen
V.A.DisplayScreen ScreenName Command Type: Method
4-12
Values
Page 73
V.A.DisplayScreen displays ScreenName. Parameters
Description
Values
ScreenName
The name of the screen to display
For any TT Advantage form name to display on the device; That form name should start with “pad”.
RETURN VALUES None SEE ALSO V.A. DisplayPreviousScreen, V.A.RedrawScreen EXAMPLE V.A. DisplayScreen, padThankYou
V.A.DrawLabel Lbl [, ClearScreenUnder Label] Command Type: Method V.A.DrawLabel Lbl draws a label on the current screen. The label does not have to come from the current screen. This allows the developer to change the contents, then display the new contents on the screen. Updating a label on the TT3100 Series screen is the one of the main uses for this command. For example, a label on the screen with a caption of “Please Swipe your Card.” can change to read “Thank you, Please wait”...V.A.DrawLabel Lbl changes the labels caption but does not display on the screen until a V.A.DrawLabel command executes or the V.A.RedrawScreen command is executed. Error messages make a good application for the DrawLabel command. To do that: 1. Create a label on a screen containing a message for a user making an expected error. 2. Set the tag property of the label to “hide”. This keeps the label from displaying. 3. If the user makes the anticipated mistake, update the caption then have the program execute a DrawLabel command so that the label text appears on the TT3100 Series terminal.
4-13
Page 74
Parameters
Description
Values
Lbl
A label for display
Use full name of label. If the label resides on a different form prefix the label name with the label, form name. Example: padScreen1.lblMessage
ClearScreenUnderLabel
Setting ClearScreen UnderLabel to
Optional parameter
(optional parameter)
“True” clears the screen under the label
Boolean: True or False before drawing. This allows the label to overwrite other screen elements.
RETURN VALUES None SEE ALSO Controls: Labels EXAMPLE V.A.DrawLabel lblMessage, True
V.A.DrawScreenHotSpot Command Type: Method V.A.DrawScreenHotSpot creates an invisible button that covers then entire screen. When the screen is touched anywhere, the hidden button activates and the GoNext command of the screen fires. Parameters
Description
Values
None
RETURN VALUES None SEE ALSO Forms: GoNext event EXAMPLE V.A.DrawScreenHotSpot
V.A.ErrorDescription Command Type: Property V.A.ErrorDescription displays error messages to the user. To display an error message, set V.A.ErrorDescription to the error message, then go to another screen with V.A.DisplayScreen or re-display the current screen with V.A.RedrawScreen. After the screen redraws, the error message appears along with an “OK” button. When the OK button is clicked, TT Advantage starts over at padStart.
4-14
Page 75
Note: No variables lose information in the process. Parameters
Description
Values
None
SEE ALSO V.A.ShowError EXAMPLE V.A.ErrorDescription = “Database connection lost.” V.A.RedrawScreen
V.A.FontHeight padFont Command Type: Property V.A.FontHeight pad returns the height of the padFont parameter in pixels. Parameters
Description
Values
PadFont
A defined pad font size.
Font6x8 Font8x8 Font8x12 Font12x16 Font16x16 Font16x24
RETURN VALUES Integer value SEE ALSO V.A.FontWidth, V.A.PadFontSize EXAMPLE FontYSize = V.A.FontHeight(Font8x8)
4-15
Page 76
V.A.FontWidth padFont Command Type: Property V.A.FontWidth.padFont returns the width of the indicated font in pixels. Parameters
Description
Values
PadFont
A defined pad font size
Font6x8 Font8x8 Font8x12 Font12x16 Font16x16 Font16x24
RETURN VALUES Integer value SEE ALSO V.A.FontHeight, V.A.PadFontSize EXAMPLE FontXSize = V.A.FontWidth (Font16x16)
V.A.InvertControl ControlName Command Type: Method V.A.InvertControl reverses or inverts the colors of ControlName on the screen. Parameters
Description
Values
ControlName
Any existing control on a pad screen that
Examples of the controls are:
has Left, Top, Width, and Height
Labels, buttons, and images.
properties
RETURN VALUES None EXAMPLE V.A.InvertControl lblMessage
4-16
Page 77
V.A.MagOff Command Type: Method V.A.MagOff turns off the Mag Card reader (MSR Reader). Parameters
Description
Values
None
RETURN VALUES None SEE ALSO V.A.MagOn, CONTROLS: MSRcontrol EXAMPLE V.A.MagOff
V.A.MagOn Command Type: Method V.A.MagOn turns on the Mag Card reader (MSR Reader). This method provides the same functionality as the MSRControl. To use V.A.MagOn put the command in the ScreenInitialize event on a form. Parameters
Description
Values
None
RETURN VALUES None SEE ALSO V.A.MagOff, CONTROLS: MSRControl EXAMPLE V.A.MagOn
4-17
Page 78
V.A.PadFontSize Command Type: Method V.A.PadFontSize returns the size of the font in the defined pad font size, SigBoxTextFont. Use V.A.PadFontSize in connection with FontWidth and FontHeight to determine the screen width of a character in a control. To learn how wide the characters are in a label. Pass the result of PadFontSize to PadWidth (see example below) Parameters
Description
Values
Any object that has a Visual Basic Font.
RETURN VALUES None SEE ALSO V.A.FontWidth, V.A.FontHeight EXAMPLE This command returns the width of each character in the label. Each character has the same width so only one value is returned. CharWidth = V.A.FontWidth(V.A.PadFontSize(lblMessage))
V.A.RedrawScreen Command Type: Method V.A.RedrawScreen clears the current screen and redraws it. Parameters
Description
Values
None
RETURN VALUES None SEE ALSO V.A.DisplayScreen EXAMPLE V.A.RedrawScreen
V.A.RefreshListBox Command Type: Method V.A.RefreshListBox redraws the list box control on the TT3100 Series terminal. You need this if you add new items to the list box or remove some.
4-18
Page 79
Parameters
Description
ListBoxControl
Valid List Control Object
Values
RETURN VALUES None SEE ALSO Using the ListBox Control EXAMPLE V.A.RefreshListBox
V.A.ScreenStackClear Command Type: Method V.A.ScreenStackClear clears a stack of screens that loaded to the TT3100 Series terminal. If you need to go back to a previous screen, you must clear screen stack. Parameters
Description
Values
None
RETURN VALUES None SEE ALSO V.A.DisplayScreen EXAMPLE V.A.ScreenStackClear
V.A.ShowError ErrorMsg Command Type: Method V.A.ShowError Error displays an error message on the interactive point of sale screen with an “OK” Button. When this button is clicked, TT Advantage starts over at padStart. Parameters
Description
Values
ErrorMsg
Text message to display
String Value
RETURN VALUES None SEE ALSO V.A.ErrorDescription
4-19
Page 80
EXAMPLE V.A.ShowError “Cannot write to file”
V.A.ShrinkWrap Command Type: Property Set ShrinkWrap to True to reduce the amount of memory storage a signature occupies. Setting ShrinkWrap to False causes the entire signature screen, 320 x 240 pixels, to save to memory. With ShrinkWrap set to “True”, the extra pixels surrounding the signature are trimmed off before the save. A signature with dimensions of 50 x 200 pixels takes up more than seven times as much space in memory when ShrinkWrap is set to False than when it is set to True. Parameters
Description
= True
“True” shrink-wraps the signature.
= False
“False”, is the default value.
Values
RETURN VALUES None (Write only) SEE ALSO V.A.Signature EXAMPLE V.A.ShrinkWrap = True
V.A.Signature Command Type: Property V.A.Signature saves a signature into a string variable. This property is the recommended way to obtain signatures from TT3100 Series terminals. Set the property to a string variable, then write the variable to a database or other file. Parameters
Description
None
RETURN VALUES Signature in the form of a string SEE ALSO V.A.ShrinkWrap EXAMPLE Dim Sig as String Sig = V.A.Signature
V.A.Smoothing Command Type : Property
4-20
Values