NS Basic/Palm 6.0 Release Notes

June 1, 2007

Copyright 2007 NS BASIC Corporation


Contents

  1. Demonstration Edition
  2. How to Install NS Basic/Palm
  3. How to run your program on your Desktop
  4. What's New?
    Version 6.0.0
    Version 6.0.1
    Version 6.0.2
    Version 6.0.3
    Version 6.1.0
  5. Known Issues
  6. Documentation
  7. Support

Welcome to NSBasic for Palm 6.0!

NS Basic/Palm 6.0 is a major new release of NS Basic with some great new features: faster compiles, new Treo features such as Navigation and addition API functions and modal forms.

We've also added some other enhancements and some bug fixes.

NS Basic/Palm is a complete development environment for Palm OS devices. NS Basic/Palm 6.0 creates programs for all Palm OS devices running Palm OS 3.1 or later, including Palm OS 5.x. It runs on Windows 95/98/ME/NT/2000/XP. Using Virtual PC, it will run on Mac OS. It will run on Linux using Win4Lin and VMWare.

Version 6.x is upwardly compatible with all earlier versions of NS Basic/Palm. Programs written in those versions will be able to run in the new version without change. However, projects saved in 6.0 cannot be opened in earlier versions. The new Runtime will also work with your older compiled projects.

NS Basic/Palm is a commercial software product, licensed subject to the License Agreement that must be must be agreed to before installation. The Agreement also appears in the NS Basic/Palm Handbook.

This document contains what you need to know to install and run NS Basic/Palm.

Please visit our web site for the latest version of this document. You'll see the latest installation notes and updated news.

NS Basic/Palm Features

The easiest way to program Palm OS devices!

1. Demonstration Edition

If you are running the Demonstration Edition, welcome! This is a full version of NS Basic/Palm, with some restrictions: There is no need to download the NS Basic Runtime since the Demonstration Edition automatically builds it into your app.

2. How to do a new installation of NS Basic/Palm

You can install NS Basic/Palm directly from this document if you are installing from the release CD. If you have an earlier version installed, the installer will automatically uninstall the old version. The link immediately below to NSBasic_Palm.exe will only work if you are running this from the installer CD and your browser allows this. Otherwise, navigate to the CD and run the installer directly from there.

  1. Install NSBasic_Palm.exe*. This will install all the necessary files onto your desktop, and put NS Basic/Palm on your Start menu. Click on the link and select the option "Run this program from its current location".
    You may see the message "The publisher cannot be determined due to the problem below: Authenticode signature not found." It is safe to ignore this message.
  2. Once the installation is complete, start NS Basic/Palm. If you have the full version, enter your serial number (from the back of your Handbook) into Register under the Help menu. Otherwise, the programs you create will time out after 5 days.
  3. From the Run menu, download the NS Basic Runtime and Mathlib to your device. There is no need to download the Runtime if you set the Build Option for Fat Apps. Mathlib is only required if you are using the additional math functions.
  4. Register your copy so we can keep you up to date. (If you bought directly from us, you are automatically registered).

* If you are not able to install directly from this document, click on the file named NSBasic_Palm.exe. If you are using the FireFox browser, this will be the case.

If you have problems with the installation, see Tech Note 01.

Getting Started

From the Start... Programs... menu, select NS Basic/Palm OS, then NS Basic Palm IDE. It will bring up a dialog box. Select "Other Existing Projects" and pick one of the Samples. You will then be able to browse the project and compile the .prc file to run on your Palm device. You should also try the Tutorials: they are on the Start menu.

Using NS Basic/Palm with Windows Japanese, Chinese, Hebrew, Greek, etc.

NS Basic/Palm can work with double byte character sets. If there is a string table for your language, the settings will be automatic. Here is how to set up NS Basic/Palm: See also http://nsbasic.com/palm/Japanese/

3. How to run your program on your desktop

There are two ways to run your programs on the desktop. POSE lets you emulate a pre Palm OS 5.0 device, while the Simulator emulates a Palm OS 5.x device. You can download, start and stop programs on either one from within the NS Basic's Run menu. Use Tools...Options to select which one you want to use. Don't forget to download the Runtime if you are not building a Fat App.

Important: The Simulator, the ROM images and the associated files are licensed from PalmSource. When you install NS Basic, you agree to an End User License Agreement with PalmSource that has the terms of the license. A copy of the Agreement is in the \Program File\NSBasic folder.

POSE - Palm OS Emulator

POSE is a desktop emulator for Palm OS 3 and 4 devices. NS Basic installs a copy of POSE with the ROM of a color Palm III running Palm OS 4.1. If you would like emulate a different device, you will need to get the appropriate ROM image from the manufacturer of your device.

You may be able to get a ROM image from your device. Using ROM Transfer.prc (in the Download folder), you can upload ROM images from most devices to the desktop. You can then use the transferred ROM file with POSE.

Each device has their own version of the ROM, sometimes with special features that are only on that device. The manufacturers sometimes, but not in all cases, have a special version of POSE that must be used.

The configuration of the Emulator is saved in the file \WINNT\Palm Emulator.ini.

If you want to get a copy of Palm's ROM or get the complete POSE documentation and files, go to http://www.palmos.com/dev/tools/emulator/. For more information on using POSE, see Tech Note 20.

Simulator

The Palm OS Simulator is Palm OS 5 running native on a Windows machine. It comes complete with a Palm OS 5 ROM, so there is no need to download or upload a ROM image. The Simulator puts a Palm OS 5 device on your desktop to run your programs. You can control it from within NS Basic in exactly the same manner as POSE.

The first time you run it, it will ask you to accept a license agreement. After doing so, shut down the Simulator and restart it. You may get error messages when doing so: you may ignore them.

Some manufacturers have special versions of the Simulator to emulate specific devices: for example, Palm has a Tungsten T3 version. You can download this (after executing appropriate license agreements) from the Palm website. You can use it with NS Basic by changing the pathname to the Simulator in Tool...Options.

You can download the full Simulator from http://www.palmos.com/dev/tools/simulator/. This also includes full documentation on using the Simulator. While the documentation says otherwise, we find the Simulator only works well on Windows 2000 and XP.


4. What's New in this Release

The following enhancements and bug fixes are in NS Basic 6. The online help has been updated with the following information as well. An updated version of the Handbook has also been printed.

Enhancements and Fixes in 6.1.0

  1. Support added for AlphaSmart Dana (See below)
  2. PDB Creator Lite upgraded to PDB Converter Pro (See below)
  3. Recent.Dat is no longer overwritten on an upgrade.
  4. Japanese Language Reference converted for Vista
  5. English Language Reference changed to correct version.
  6. Version number shows correctly on NSBRuntimeARM68k
  7. TreoLib is now Version 2 (no changes to actual shared library)
Documentation Notes in 6.1.0
  1. AlphaSmart Dana: The Dana is Palm OS device with a 560x160 screen and a full keyboard. NS Basic/Palm now lets you use the full screen size. To enable it, go into Options on the Tools menu of the IDE. In the Compile/Download tab, turn on "Set WideScreen for AlphaSmart Dana". The IDE will then display the design window as 560 pixels wide and the app will use the full screen width when running.
  2. PDB Creator Pro: This utility allows you to create and manipulate Palm OS databases on the desktop. It has the following features:
    • Up to 32K records, 255 fields per record
    • Numerous data types supported, including variable and fixed-length strings, long and short integers, single and double-precision floating point, byte, and NSBasic date and time
    • CSV, tab-delimited text, text with user-defined delimiters, HanDBase (up to version 2.75), and Excel, HTML table and web-page (for output)
    • Multi-level sorting
    • Interactive (direct data entry and manipulation)
    • Byte-level editor (directly edit PDB header and record data)
    More info is available at
    http://www.pdbconverterpro.com

Enhancements and Fixes in 6.0.3

  1. A new suite of Tutorials has been added to the Help menu.
  2. IDE: Project files are closed properly after being read in.
  3. IDE: Error 53 on some language Help files fixed.
  4. Help: German Language reference converted from .hlp to .chm for Vista
  5. ARM Native: Problem with Grid.TopRow fixed,
  6. ARM Native: Problem with database fixed.
  7. ARM Native: Problem with Grid fixed.

Enhancements and Fixes in 6.0.2

  1. Compile: Starts in correct folder so relative paths resolve correctly. (Fixes possible Error 91)
  2. Debug: If a breakpoint has opened a code window, it cannot be opened again.
  3. Debug: If a code window for an object is already open, a breakpoint will not open it again.
  4. IDE: Arrows on empty menu no longer get error.
  5. IDE: Module names are properly assigned.
  6. ScreenLibTest sample updated.
  7. DocReader sample updated.
  8. IDE: Error 91 on Slider paste fixed.

Enhancements and Fixes in 6.0.1

  1. IDE: Editing of Resource Path fixed.
  2. IDE: A maximum of 18 forms can have navigation. Additional forms will have navigation turned off.
  3. Runtime: Field events are now executed when navigating using 5-way control.
  4. SymbolLib.inf: formatting problem fixed.

Enhancements and Fixes in 6.0.0

  1. IDE: Navigation capabilities added for Treo and other Palm Inc devices. See notes below.
  2. IDE: Compile times are about 40% faster.
  3. IDE: Support for Vista added
  4. IDE: English help now in chm format.
  5. IDE: Modal forms with Tips now supported. See notes below.
  6. IDE: Pathnames of modules, resources and bitmaps that are on the same drive as the projects are now relative, making it easier to move them to a different folder.
  7. IDE: Resource numbers greater than 9999 are no longer created.
  8. IDE: Modules no longer increment their resource numbers when reopened.
  9. IDE: Form name trimmed of leading and following spaces.
  10. IDE: No longer uses Scrrun.dll
  11. IDE: Files that are not .prj cannot be opened.
  12. IDE: A couple of dialog boxes that did not support Japanese have been fixed.
  13. TreoLib: New functions added: GetLibRefNum, GetRingProfile, GetRoamMode, GetRoamWarnings, PhonePower, SetRingProfile, SetRoamMode and SetRoamWarnings. See Tech Note 30.
  14. Support added for PDB Creator Pro - Create, view and edit Palm databases on the desktop. See below.
  15. Compiler: Scrollbar.Current (obsolete from of .Value) compiles properly.
  16. Compiler: Reports total compile time.
  17. Runtime: PopUp time All Day values fixed for European time.
  18. Runtime: Bug in IR communications fixed.
  19. New Sample: Navigation
  20. New Sample: ModalForms
  21. Updates Sample: TreoTest includes new functions.
  22. Help files updated for new release.
  23. Tech Notes updated for new release.
  24. Handbook updated for new release.
Documentation Notes in 6.0.0

1. Navigation

Starting with the Treo, Palm added Navigation features to many of its devices. Using the 5 way control, a user can tab from field to field on a form. NS Basic/Palm allows you to control how this tabbing works.

Navigation is controlled by properties of the form and of objects that support navigation. Don't worry about running programs on devices without navigation: the navigation info is simply ignored.

If you do not set up any Navigation information, it will still work. The default tab order is used, where the left and right five way buttons move through the objects in the order that they are created. You can change this order by right clicking on the form name in the Project Explorer.

Interaction Mode vs. Navigation Mode

More complex objects need to "take over" the scroll keys in order to interact with them. For example, a text field needs to allocate all four scroll keys to move the cursor. Similarly, a pop-up list needs to use up and down to change the selection in the list. This conflicts with the requirement of using the scroll keys to navigate between objects. As a result, these complex objects need to have an interaction mode, where they can take over control of the keys. The opposite of interaction mode is navigation mode, where scroll keys navigate between objects. On a system with one-handed navigation, pressing "center" toggles between interaction mode and navigation mode. Finally, a subset of interaction mode is edit mode, which refers specifically to text fields.

Object Focus Mode vs. Application Focus Mode

Interaction mode and Navigation mode are Palm.com concepts. Access (formerly PalmSource, Inc) has defined application focus mode and object focus mode. Application focus mode refers to applications that do not have keyboard navigation enabled. In this state, up and down act as page up and page down in the traditional method that Palm OS implemented in its original form. Object focus mode refers to the state where individual objects on the screen can receive focus, essentially what "navigation mode" refers to above. Applications may or may not be able to toggle between application focus and object focus modes.

Form Navigation Properties

Object Navigation Properties

Additional Notes on Navigation

Grafitti Shift Indicator and Bitmap cannot be navigated to. Label and Scrollbar are always skipped. If you navigate to slider, the arrows on the five way control the slider and do not tab.

See the NavDemo.prj sample for more information.

5. Modal Forms with Tips

A Modal Form is a sub form that is used for a specific purpose. Modal forms are displayed on top of the current form. Modal forms have a different title bar style than modeless forms, and they have a border. Modal forms should be far less common in your application than modeless forms. Their main use is for setting options, such as application preferences. The title bar cannot be clicked on except on the "i" icon, which bring up some tips.

Modal forms do not have to be full screen - in fact, they should be no taller than necessary. Since they have a border, they look best if they are positioned 4 pixels from the left with a width of 154. They are usually positioned at the bottom of a screen. There is usually a Done button to close the form.

To make a form modal, set its Modal property to True. Enter whatever tips you want to show in the Tips property.

See the ModalForms.prj sample for more.

Read more about modal forms on Palmsource's website here: http://www.palmos.com/dev/support/docs/ui/UI_Forms.html

14. PDB Creator Pro

NS Basic/Palm 6.0 includes a free license to PDB Creator Pro. PDB Creator Pro is a powerful database creation and editing solution for those who simply need to create, edit, or debug Palm OS databases on the Windows desktop.

PDB Creator Pro features:

  1. Up to 32K records per database
  2. Up to 255 fields per record
  3. Numerous data types supported, including variable and fixed-length strings, long and short integers, single and double-precision floating point, byte, and NSBasic date and time
  4. Multi-level sorting
You can download PDB Creator Pro for NS Basic/Palm here.

5. Known Issues

See
Tech Note 01 for solutions to common problems.

6. Documentation

  1. The NS Basic/Palm Handbook. It is shipped with each copy of NS Basic/Palm. It is approximately 140 pages and details all commands, functions and statement, with examples for each of them.
  2. The Language Reference under the Help menu contains a summary of all statements, functions, objects and constants.
  3. The Tech Notes contain detailed information on a number of topics, including add ons to NS Basic.
  4. Tutorials: On the NS Basic/Palm Start and Help Menus.
  5. Sample Code: We have a selection of programs submitted by NS Basic/Palm users here on the web site. There are many more in the Files section of the NS Basic Web Board. Some cool stuff here!
  6. NS Basic Programming for Palm OS: This is an excellent book, by Michael Verive, that discusses NS Basic tips and techniques. 317 pages.

7. Support

We're committed to delivering the best possible support. The following resources are available:
  1. See the list of Common Problems.
  2. The NS Basic/Palm Web Board. Post questions and comments, and get answers in a public forum, plus more samples to download. Essential!
  3. Email Support: Send your questions to support@nsbasic.com
  4. Tech Notes: The Tech Notes posted on our web site give additional and specialized information on a wide variety of topics.
  5. Updaters: From time to time, we may offer updates to NS Basic/Palm modules for download at no charge. Register your copy to make sure you are on the list.
We do not offer support by phone. Many problems involve looking at code and many solutions involve complex web addresses that don't communicate well by voice. Try the email support - it works better and we do our best to respond quickly!
Copyright (c) 2006 NS BASIC Corporation