Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 1 of 10

TT Advantage Programmer's Guide, pages 1 to 10

Pages 1 to 10 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 1 read from a scan by OCR; it may hold reading errors

7 HAND HEL iil mRAoDUCTS a WelchAllyn: affiliate

TT Advantage

Programmer’s Guide

Page 2

Disclaimer Welch Allyn Data Collection, Inc. (d/b/a Hand Held Products) reserves the right to make changes in specifications and other information contained in this document without prior notice, and the reader should in all cases consult Hand Held Products to determine whether any such changes have been made. The information in this publication does not represent a commitment on the part of Hand Held Products. Hand Held Products shall not be liable for technical or editorial errors or omissions contained herein; nor for incidental or consequential damages resulting from the furnishing, performance, or use of this material. This document contains proprietary information which is protected by copyright. All rights are reserved. No part of this document may be photocopied, reproduced, or translated into another language without the prior written consent of Hand Held Products. 2001 Welch Allyn Data Collection, Inc. All rights reserved. Web Address: www.handheld.com Microsoft Visual C/C++, MS-DOS, Windows 95, Windows 98, Windows 2000, and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product names mentioned in this document may be trademarks or registered trademarks of other companies and are the property of their respective owners.

Page 3

Table of Contents 1

Introduction ...................................................................................... 1-1 Functions .........................................................................................................................1-1 Benefits.............................................................................................................................1-1 Modes...............................................................................................................................1-2 Script Mode ...............................................................................................................1-2 VB Mode ...................................................................................................................1-2 Why use TT Advantage?...................................................................................................1-2 Other Hand Held Products Development Software.........................................................1-2 TT Advantage Users.........................................................................................................1-3 System Requirements ................................................................................................1-3 Installation of TT Advantage ....................................................................................1-3 Installed Files ............................................................................................................1-4

2

Developer Environment ................................................................... 2-1 Starting TT Advantage Projects.......................................................................................2-1 The TT Advantage Project Window .................................................................................2-2 The TT Advantage Assistant ............................................................................................2-3 The Controls on TT Advantage Assistant ........................................................................2-4 Controls for TT Advantage Forms...................................................................................2-5 TT Advantage Forms .......................................................................................................2-5 Adding TT Advantage Forms....................................................................................2-5 Pad Form Events .......................................................................................................2-6 Pinpad form ...............................................................................................................2-6 TT Advantage Form Properties.................................................................................2-7 Programming Modes Overview .......................................................................................2-7 Comparison of TT Advantage Modes .......................................................................2-7 Deciding Which TT Advantage Mode to Use...........................................................2-7

3

Script Mode....................................................................................... 3-1 What are Scripts?.............................................................................................................3-1 Operating a Script ...........................................................................................................3-1 Screen Creation Process in Script Mode.........................................................................3-2 Script Mode Software Components .................................................................................3-2 Controls .....................................................................................................................3-2 Forms.........................................................................................................................3-3 Modules .....................................................................................................................3-3 References .................................................................................................................3-3 i

Page 4

Downloading the Designed Script to the TT3100 Series Terminal .................................3-3 Operational Host Communication with Scripts...............................................................3-4 Host to Script Communication.........................................................................................3-4 Transaction Events ..........................................................................................................3-5 Script Mode Controls.......................................................................................................3-6 Control Font Sizes ...........................................................................................................3-6 TT Advantage Tool Box ...................................................................................................3-7 Image ...............................................................................................................................3-7 Label ................................................................................................................................3-8 Textbox.............................................................................................................................3-8 Line ..................................................................................................................................3-8 ListBox .............................................................................................................................3-8 MSRControl .....................................................................................................................3-9 SigControl........................................................................................................................3-9 Shape..............................................................................................................................3-10 Timer ..............................................................................................................................3-10 Script Commands ...........................................................................................................3-10 Command Prefixes ..................................................................................................3-10 Declaring Variables.................................................................................................3-11 Script Command Generation ...................................................................................3-11 TT Advantage Objects, Properties and Methods (Script Mode)....................................3-14

4

VB Mode ........................................................................................... 4-1 When to Use VB Mode .....................................................................................................4-1 Developing Applications in the VB Mode........................................................................4-1 Communication................................................................................................................4-1 Distributing TT Advantage Applications .........................................................................4-2 VB Mode Software Components ......................................................................................4-3 VB Mode Controls ...........................................................................................................4-4 Control Font Sizes ...........................................................................................................4-5 TT Advantage Tool Box ...................................................................................................4-5 CheckBox .........................................................................................................................4-6 Command Button .............................................................................................................4-6 Image ...............................................................................................................................4-6 Label ................................................................................................................................4-7 Line ..................................................................................................................................4-8 ListBox .............................................................................................................................4-8 MSRControl .....................................................................................................................4-8 SigControl........................................................................................................................4-9 Shape..............................................................................................................................4-10 TimerControl .................................................................................................................4-10 ii

Page 5

VB Mode Commands......................................................................................................4-10 V.A..................................................................................................................................4-12 MSR................................................................................................................................4-21 SigBox ............................................................................................................................4-23 VAEvent Class Module ..................................................................................................4-24

5

Error Messages................................................................................. 5-1 VB Mode Error Messages................................................................................................5-1 Script Mode Error Messages ...........................................................................................5-2

6

Help Desk.......................................................................................... 6-1 iii

Page 6

iv

Page 7

Introduction

1

Introduction

TTAdvantage is a Visual Basic add-in tool that is distributed on the Transaction Team (TT) 3100 Series Software Suite CD. Add-ins are time and labor saving automation tools for the Visual Basic programming environment. Add-ins ease development time by customizing and extending the Visual Basic environment. TTAdvantage provides two important benefits to developers building interactive point-of-sale applications for Hand Held Products TT3100 Series terminals. It speeds programming and eases the task of integrating TT3100 series terminals into existing software applications.

Functions Based on the popular Visual Basic programming environment, TT Advantage provides simple tools to integrate command buttons, signature capture boxes, graphics, MSR data capture, text boxes, list boxes and check boxes onto Hand Held Products TT3100 Series screens. TT Advantage enables developers to quickly create, modify and add new screens and capabilities to TT3100 Series terminals.

Benefits Designing the appearance of a TT3100 Series screen is as simple as using a drawing program. The graphical nature of the TT Advantage programming environment saves development time. Elements such as boxes, buttons, pictures and lines can be created easily with Visual Basic controls to compose ads and graphics. Controls added to Visual Basic by TT Advantage enable developers to create applications that capture signatures, read credit cards, and display forms for user input. With the ease of creating and programming display screens using TT Advantage, developers can build and update their systems in a timely manner. Developers writing in C, C++ and other languages benefit especially when using TT Advantage to integrate TT3100 Series terminals with existing applications. With TT Advantage, developers can create applications called “scripts” that reside and run on the TT3100 Series terminals. Existing C and C++ programs trigger interactive point of sale resident applications. When the interactive point of sale application runs to completion, it can return information such as signature or magnetic stripe values to the triggering application. TT Advantage allows creation of TT3100 Series interactive point of sale resident scripts that minimize disruption to existing host code.

1-1

Page 8

Modes TT Advantage offers two modes of programming: Script Mode and VB Mode. Both modes rely on the Visual Basic Integrated Development Environment for code generation.

Script Mode Programmers typically employ Script mode when TT3100 Series terminals and programs must integrate into existing programs written in C, C++ or other languages. One common example of that is retail point of sale, where new interactive applications must integrate with proprietary retail sales applications and dated equipment. Script mode creates new applications that reside and execute on the TT3100 Series terminals and are triggered by existing retail applications.

VB Mode Programmers typically employ VB mode for building stand-alone Visual Basic applications that control the TT3100 Series terminal or integrating with existing Visual Basic applications that reside and execute on a host such as a Windows 95/98/NT PC. A common Visual Basic stand-alone application is security sign-in. The flexibility inherent in TT Advantage allows developers to place application logic where it's most appropriate, either on a host or on the TT3100 Series terminal. Such flexibility allows Hand Held Products transaction applications to be created for practically any hardware and software configuration.

Why use TT Advantage? Use TT Advantage to efficiently write applications for TT3100 Series terminals. The most important uses for TT Advantage are the following: •

As a tool for creating interactive point of sale resident scripts running on TT3100 Series terminals

•

As a tool for integrating TT3100 Series terminals and transaction software into existing systems.

•

As a tool to quickly modify projects and produce stable code for Hand Held Products transaction applications

•

As a tool to quickly create interactive point of sale proof of concept demonstrations

Other Hand Held Products Development Software Hand Held Products Software Development Kit (SDK) is included with TT Advantage on the TT3100 Series Software Suite CD. The SDK contains other development components such as static libraries and ActiveX components that interface with the TT3100 Series terminal. For further information on the components that make up the SDK, see the SDK Roadmap document which is available upon installation of the SDK.

1-2

Page 9

TT Advantage is a shell that insulates developers from lower level coding that is required if using the Hand Held Products SDK directly. The following diagram shows the relationship between TT Advantage and the SDK.

High Level Code

Interactive Point-of-Sale Application

Hand Held Products TT Advantage

Hand Held Products SDK OCX DLL Libraries

TT3100 Series Terminal Firmware Low Level Code

Developers of stand-alone Visual Basic PC applications may only need TT Advantage and not the SDK. Many developers use both the SDK and TT Advantage. The SDK supplies developers with special software components and libraries while TT Advantage provides an environment for rapid application development.

TT Advantage Users The intended users are application developers and integrators building systems that contain TT3100 Series terminals, or extending systems to include TT3100 Series terminals. Users of TT Advantage need to be familiar with Visual Basic.

System Requirements The system requirements for TT Advantage are the following: •

Windows PC with 100 MHz or faster Pentium microprocessor.

•

16 MB of RAM (32 MB recommended) and 10 MB free hard disk space

•

TT3100 Series terminal

•

Visual Basic 5.0 with Service Pak 3

Installation of TT Advantage TT Advantage is a component on the Transaction Team 3100 Series Software Suite CD. ® The installation program is a simple to use InstallShield application. Please refer to the Startup Guide you received with your hardware for instructions on software installation.

1-3

Page 10

Installed Files The files installed on the developmental PC are listed in the following table: Type

Item

Application mxVisual.dll

DLLs mxSptool.dll

Description

Location Program Directory

Downloads scripts and supports

System Directory graphics mxScript.dll

Script commands

System Directory mxVAhost.dll

Host required DLL for host

System Directory mode OCX

Sigbox.ocx

Host mode connectivity

System Directory

VisualControls.ocx

MSR + Sig Controls

System Directory

Text Files scriptdescriber.txt

Definitions for script commands

Program Directory

VB Mode

MDIMain.frm (read only)

MDI form that holds all screens

Program Directory\Templates\TT

Templates

Advantage\VB TT AdvantageHost.vbp

Project files template

Program Directory\Templates\ TT Advantage \VB frmSplash.frm padStart.frm

Application specific splash

Program Directory\Templates\ TT screen

Advantage \VB

Initial Screen

Program Directory\Templates\ TT Advantage \VB

VAevents.cls modMain.bas

User can code these TT

Program Directory\Templates\ TT

Advantage generated events

Advantage \VB

Main code module that connects Program Directory\Templates\ TT classes

SCRIPT

TT Advantage Script.vbp

Advantage \VB

Template project for Script mode Program Directory\Templates\ TT

Mode

Advantage \SCRIPT

Templates MainScript.bas padStart.frm

Creates the main TOOL class

Program Directory\Templates\ TT and user code area

Advantage \SCRIPT

First screen

Program Directory\Templates\ TT Advantage \SCRIPT

FORM

TT Advantage.frm

Form used in both modes

Program Directory\Templates\FORMS

Vapinpad.frm

Form used to obtain PIN data in

Program Directory\Templates\Forms

Template script mode Output script.bin

Files Admin

1-4

Temp BIN file for Script

...\TEMP or C:\ loading, Script file Admin.exe

This file does the following:

Program Directory\Templates