This release of PocketBuilder includes several new objects that provide an interface to functionality that is native to the Pocket PC or Smartphone platform. In earlier versions of Pocket PowerBuilder, the following objects and controls were introduced: HPBiometricScanner object, NotificationBubble object, POOM objects, Signature control, SymbolBarcodeScanner object, and Toolbar control, as well as support for the Pocket PC Today screen.
Table 1 lists new objects in the current release of PocketBuilder. For more information, see the chapter on “Working with Native Objects and Controls for the Windows CE Platform” in the User’s Guide, or see the online Help.
PocketBuilder 2.0 adds UI support for the Smartphone 2003 and Smartphone emulators and retains support for the Pocket PC 2002 and 2003 emulators. Several of these emulators are available in Software Development Kits on the Microsoft Web site.
The Project painter has been redesigned to accommodate the following new features:
A Smartphone device target
Additional PocketPC emulators and Smartphone emulators
Signing of applications and CAB files
Selection of certificates for signing
Certificate management
Export CE to Desktop The PocketBuilder wizard for exporting targets and converting them to PowerBuilder® targets has an additional Create Unicode Libraries check box that lets you export the target for compatibility with PowerBuilder 10. By default, the Export CE to Desktop wizard converts PocketBuilder targets to PowerBuilder 9 targets.
Import Desktop to CE The wizard for importing PowerBuilder targets and converting them to PocketBuilder targets has also been modified to process Unicode targets from PowerBuilder 10 and ANSI targets from PowerBuilder 9, but these changes are internal to the wizard and are not visible in the user interface.
Template Application wizards The Template Application wizard has been split into separate wizards for creating Pocket PC and Smartphone applications. Each of the new wizards generates windows, menus, and scripts that are specific to the target platform indicated in the wizard name.
The following system functions have been added in PocketBuilder 2.0:
FocusToPreviousInstance
GetScreenOrientation
SetScreenOrientation
The SingleLineEdit, MultiLineEdit, EditMask, DropDownListBox, ListView, and TreeView controls all have an InputEditMode property that you can set on the Other tab of the Properties view for the control in the PocketBuilder IDE. Using the InputEditMode property for edit controls, you can set the SIP type or the edit mode for each edit field in a PocketBuilder 2.0 application that you deploy to a Pocket PC or Smartphone.
You can also use the InputEditMode property for editable DataWindow columns. You assign the InputEditMode property on the Edit tab of the DataWindow painter properties view if you select Edit or EditMask as the Edit style type.
PocketBuilder 2.0 provides support for PowerScript® objects that were not supported in previous Pocket PowerBuilder releases. These objects are the ContextInformation object, the ContextKeyword object, and the Inet object, which are all children of the Service object.
Functions of the ContextInformation object return the following values:
GetShortName returns “PocketPC” on a Pocket PC and “PocketSM” on a Smartphone device
GetName returns “PocketBuilder Runtime”
GetHostObject returns an empty object—it fails the isValid(obj) test
The InternetResult object is also enabled for the current release.
PocketBuilder 2.0 defaults all Main! type windows to full screen size at runtime. The DefaultSize check box for window size at design time has been replaced by a drop-down list. The drop-down list includes the following items:
PDA Portrait 240 x 320 QVGA
PDA Landscape 320 x 240 QVGA
Smartphone Portrait 176 x 220
Smartphone Square 220 x 220
VGA Landscape 640 x 480
Design Size Default
Unconstrained
The sizes displayed next to the selections in the preceding list are in pixels. The Design Size Default value sets the window displayed in the Window painter to the size selected on the Size tab of the Options dialog box. The Unconstrained value lets you set the design-time window size on the Other tab of the Properties view for the current window or by dragging the window handles in the Layout view.
In PocketBuilder 2.0, you can add a setting to the Library section of the PK.INI file that allows you to check out an object from source control that is checked out nonexclusively by another user. To do this, you must add the following instruction to the PK.INI file:
[Library]
SccMultiCheckout=1
After you add this PK.INI setting, PocketBuilder shows a red check mark as part of a compound icon to indicate that an object is checked out to another user in a shared (nonexclusive) mode.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |