Skip to Content
Programming Visual Basic for the Palm OS
book

Programming Visual Basic for the Palm OS

by Matt Holmes, Patrick Burton, Roger Knoell
April 2002
Intermediate to advanced
440 pages
12h 37m
English
O'Reilly Media, Inc.
Content preview from Programming Visual Basic for the Palm OS

Basic Application Layout Example

Our first application’s purpose will be to set up a typical base window with a title bar and a command button. Our goals for this application are to:

  • Introduce the Shape, Label, and Command button ingots

  • Compile and run in Visual Basic

  • Generate a PRC file and run it on a Palm device

Start by opening an AppForge project in Visual Basic. Your first form, like regular Visual Basic applications, will be autogenerated. What you will see is a form that’s 160 x 160 pixels in size, with a blank title bar. Of course, Windows-style title bars do not exist in the Palm OS. This title bar is there to provide you with a means to drag the window around your desktop and close the form if you are test-running it in the Visual Basic IDE. This size and color of the title bar provide a common foundation for developing forms for the typical Palm or Pocket PC device that match the actual screen size of those devices. Change the name to frmBase.

The next step is to add a title bar that is common to almost all Palm applications. There are two methods to produce a title bar, custom or automatic. First, let’s look at creating a custom title bar. There are only a few reasons why you may want to create your own custom title bar, and you’ll most likely find that letting AppForge create it automatically will meet your needs. But it’s worth a quick review just in case you do want to create your own. (Automatic title bar creation was introduced in AppForge version 2.0.) We are ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Palm OS Programming, 2nd Edition

Palm OS Programming, 2nd Edition

Julie McKeehan, Neil Rhodes
Learning C# 2005, 2nd Edition

Learning C# 2005, 2nd Edition

Jesse Liberty, Brian MacDonald

Publisher Resources

ISBN: 0596002009Catalog PageErrata