The text of a manual · part 12 of 24
CK30 Handheld Computer User's Manual: Chapter 3: Developing and Installing Applications, pages 91 to 98
Pages 91 to 98 of 215, from CK30 Handheld Computer User's Manual
The original document is the PDF (3.7 MB). 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 Intermec CK30
Page 91
3
Developing and Installing Applications
In this chapter you will find guidelines for developing applications and converting existing Trakker Antares applications. You will also find information on installing applications and automatically launching them. In this chapter you will find these sections: • Developing Applications for the CK30 • Installing Applications on the CK30 • Launching Your Application Automatically • Customizing How Applications Load on the CK30
CK30 Handheld Computer User’s Manual
77
Page 92
Chapter 3, Developing and Installing Applications
Developing Applications for the CK30 The CK30 Handheld Computers run applications programmed in Microsoft Visual Studio 2005-. The CK30C can also run applications developed for the .NET Compact Framework using Microsoft C# and Visual Basic. Use this section to understand what you need to: • Develop a new application for the CK30. • Develop a web-based application for the CK30. • Convert a Trakker Antares application to a CK30 application.
Developing a New Application for the CK30 Use the Intermec Resource Kits to develop new applications to run on the CK30. The Intermec Resource Kits are libraries of C++ and .NET components grouped by functionality that you can use to create applications for the CK30. The Resource Kits are part of the Intermec Developer Library (IDL), which is available as a download from the Intermec web site at www.intermec.com/idl. You need these hardware and software components to use the Intermec Resource Kits: • Pentium PC, 400 MHz or higher • Windows 2000 (Service Pack 2 or later) or Windows XP (Home, Professional, or Server) • For native C++ development, Microsoft eMbedded Visual C++ version 4.0 • For .NET Development and Compact Framework (C# and VB.NET), Microsoft Visual Studio .NET 2003 or Visual Studio 2005 • 128MB RAM (196MB recommended) • 360MB Hard drive space for minimum installation (720MB for complete) • CD-ROM drive compatible with multimedia PC specification
78
CK30 Handheld Computer User’s Manual
Page 93
Chapter 3, Developing and Installing Applications
• VGA or higher-resolution monitor (Super VGA recommended) • Microsoft Mouse or compatible pointing device
Developing a Web-Based Application You can develop web-based data collection applications for use on the CK30. For help, see any HTML source book. The CK30 ships with iBrowse or IE Browser (CK30C only). To open iBrowse or IE Browser 1 Press C and then B to open the System Main Menu. 2 Select Programs. The Programs menu appears. 3 Select either iBrowse or IE Browser. If you selected IE Browser, the default browser window appears.
For help using IE Browser, press F1. For help using iBrowse, see the iBrowse User’s Guide (P/N 961-055-015). Note: iBrowse does not support the use of tethered scanners with the CK30.
CK30 Handheld Computer User’s Manual
79
Page 94
Chapter 3, Developing and Installing Applications
Using the IE Browser Application IE Browser is an IE 6.0 compatible web interface that allows you to run web-based applications on the CK30. IE Browser provides the ability to customize the way function keys work. You can use default Windows functions, allow your application to control the functions, or program the function keys to go to a URL. To increase the amount of usable screen real estate, elements of a typical browser such as the address bar and scroll bars have been removed. Use this table to understand what keys to press to perform basic functions in IE Browser. To use the IE Browser shortcut keys 1 Set Use F1-F5 as URL keys to Default Windows. 2 Set Pass Function Keys to Browser to Function Keys to URLs. IE Browser Shortcuts You Want to: Access Help, exit Help
Press These Keys: F1
Make the font smaller
F3
Make the font larger
F4
Refresh the browser
F5
Exit IE Browser
Ctl and then C
Hide the taskbar
Ctl and then X
Go to the home page
Ctl and then H
Edit the URL
Ctl and then O, Alt and then M
Scroll up or down a page
U and D keys
Move to the next hyperlink
Tab
Go back a page
Alt and then L
Go forward a page
Alt and then R
Stop loading
Esc
Use the following procedures to program the basic functionality of IE Browser. 80
CK30 Handheld Computer User’s Manual
Page 95
Chapter 3, Developing and Installing Applications
Setting the Start Page Use the Start Page command to set the default application address for IE Browser. The Start Page is the first page a user sees when they turn on the CK30 and select IE Browser. To set the start page 1 From the Configuration Utility main menu, select Device Settings > IE Browser > General > Start Page. 2 In the Start Page dialog box, enter the address for the application you want to use for your default application. 3 Press Enter to save your changes.
Using Windows Default Function Keys
IE Browser provides the capability of being able to use the default Windows functions for F1-F5, such as F1 for Help. To use Windows default function keys for F1 to F5 1 From the Configuration Utility main menu, select Device Settings > IE Browser > Use F1-F5 as URL Keys. 2 In the Use F1-F5 as URL Keys dialog box, select Default Windows and press Enter. 3 From the IE Browser menu, select Pass Function Keys to Browser. 4 In the Pass Function Keys to Browser dialog box, select Function Keys to URLs and press Enter.
Using Web-Based Application Settings for Function Keys If your web-based application always uses F1-F5 to perform the same functions, you can set up IE Browser so that it recognizes and uses your web application function keys. To program function keys to use the web-based application settings 1 From the Configuration Utility main menu, select Device Settings > IE Browser > Use F1-F5 as URL Keys. 2 In the Use F1-F5 as URL Keys dialog box, select URL Shortcuts and press Enter. CK30 Handheld Computer User’s Manual
81
Page 96
Chapter 3, Developing and Installing Applications
3 From the IE Browser menu, select Pass Function Keys to Browser. 4 In the Pass Function Keys to Browser dialog box, select Function Keys to HTML and press Enter.
Setting the URLs for the Function Keys You can program all of the available function keys on the CK30 to launch a URL. You can also control whether the URLs will have open or restricted access. To set the URLs for the function keys 1 From the Configuration Utility main menu, select Device Settings > IE Browser > Set URL’s for F1-F5. You can select to set the URLs for F1-F5, F6-F10, F11-F15, F16-F20, or F21-F24. This procedure uses F1-F5 as an example. 2 Select F1 URL. 3 In the F1 URL dialog box, enter the URL you want to correspond to the F1 key and press Enter. 4 (Optional) If you want to restrict access to the URL, select F1 Access to bring up the F1 Access dialog box. 5 (Optional) In the F1 Access dialog box, select Restricted Access and press Enter. 6 Complete Steps 1 through 5 as many times as necessary to program all of the function keys you need.
Programming the Function Keys to Go to a URL If you want your function keys to open URLs when you press them, you need to program IE Browser to recognize that it should open a URL when you select a function key. To program function keys to go to a URL 1 From the Configuration Utility main menu, select Device Settings > IE Browser > Use F1-F5 as URL Key. 2 In the Use F1-F5 as URL Keys dialog box, select URL Shortcuts and press Enter. 82
CK30 Handheld Computer User’s Manual
Page 97
Chapter 3, Developing and Installing Applications
3 From the IE Browser menu, select Pass Function Keys to Browser. 4 In the Pass Function Keys to Browser dialog box, select Function Keys to URLs and press Enter. 5 Set the URLs for the function keys you want to use. For help, see the previous procedure on how to set the URLs.
Programming IE Browser Applications for the CK30 Screen Since the CK30 screen is small, you may want to use a few of the programming tips in this table to more efficiently use your screen space. To Do This: Remove scroll bars
Use These Attributes in Your Tags: <body scroll=no> </body>
Remove top and left margins
<body topmargin=0 leftmargin=0> </body>
Use a small font
<basefont face=”Lucida Console” size=1>…</font>
Remove spacing between cells in a table
<table class=MenuItem cellspacing=0 cellpadding=0>…</table>
Set the font size for entries in a table
<tbody style=”font:7pt Lucida Console>…</tbody> Tip: You can also use this attribute with theader and tfooter tags.
Create a shorter text edit box that stretches across the screen
<input type=”text” name=”barcode1” tabindex=”1” style=”font-size:6pt; width:160px”/>
Control the order of controls the tab key jumps to
<input type=”text” name=”barcode1” tabindex=”1”/>
Converting a Trakker Antares Application to a CK30 Application If you have an existing Trakker Antares application that you would like to run on the CK30, you can use the Antares Migration Resource Kit to convert it. The Antares Migration Resource Kit is a set of libraries and tools that you use to convert your existing Trakker Antares C applications into C++ applications for use on the CK30. The CK30 does not support all Trakker Antares PSK functions. You may need to rewrite parts of your application when converting it for use on the CK30. See the resource kit documentation for a list of functions that are not supported. CK30 Handheld Computer User’s Manual
83
Page 98
Chapter 3, Developing and Installing Applications
You need these hardware and software components to use the Antares Migration Resource Kit: • PC with at least 300MB of free disk space running Microsoft Windows 2000/XP • Microsoft eMbedded Visual C++ version 4.0 with Service Pack 2 The Resource Kit is part of the Intermec Developer Library (IDL), which is available from the Intermec web site at www.intermec.com/idl.
Installing Applications on the CK30 There are several ways you can package applications to install on the CK30: • You can package your application as a cabinet (CAB) file. • If you have a simple application, you may only need to deliver the EXE file. • You can copy a directory structure that contains the application, supporting files, DLLs, images, sound files, and data files. Intermec recommends using CAB files to install your applications. The CK30 uses standard Windows CE CAB files and will install third-party CAB files. Before the CK30 executes a CAB file, it marks the file as read-only so that it will not be deleted after installation. After the CAB file is extracted, the CK30 automatically saves any RAM-based changes you have made to the registry or file system so that they will persist through a cold boot. This process means that you will not have to reinstall your applications when your battery goes dead or you perform a cold boot. You can have your CAB files place your application in any of these memory locations on the CK30: • The RAM-based file store (anywhere in the root \ directory) • The Flash File System (the CK_FFS folder) • On the SD card (SDMMC folder)
84
CK30 Handheld Computer User’s Manual