About This Document
Who Should Read This Book
What This Book Contains
Changes to This Book
The Exploring Palm OS Series
Additional Resources
Part I: Concepts
1 The Display
Display Coordinate System
Color
Display Layout
Window Sizing and Placement
Receiving Events
2 Working with Forms and Dialogs
Specifying Constraints
Displaying a Form
Initializing a Form
Setting a Form's Event Handler
Laying Out a Form or Dialog
Opening a Form
Drawing or Updating a Form
Closing a Form
Displaying Dialogs
Working With UI Elements
Dynamically Displaying Elements
Summary of Form and Dialog Functions
3 Working with Controls
Command Buttons
Repeating Buttons
Check Boxes
Push Buttons
Sliders
Selector Triggers
Pop-Up Triggers
Category Controls
Creating the Category Controls
Category Controls for Non-schema Database Databases
Category Controls for Schema Databases
Scroll Bars
Summary of Control Functions
4 Working with Menus
Menu Events
Edit Menu
Menu Command Shortcuts
Dynamic Menus
Summary of Menu Functions
5 Displaying Text
Text Fields
Labels
Form Titles
Fonts
Setting the Font Programmatically
Creating and Using Custom Bitmapped Fonts
Creating and Using Custom Scalable Fonts
How Palm OS Displays Bitmapped Fonts
Summary of Text Display Functions
6 Working with Tables and Lists
Tables
Lists
Using Lists in Place of Tables
Summary of Table and List Functions
7 Creating Custom UI Elements (Gadgets)
8 Drawing
Conceptual Overview
Basic Drawing Steps
Where and When to Draw
Compatibility with the Old Drawing System
Drawing Tips
Draw to Exact Pixel Boundaries
Take Advantage of Winding Rule
Summary of Drawing Functions
9 Working with Bitmaps
Bitmap Format
Displaying a Bitmap on the Screen
Creating a Bitmap Programmatically
How Palm OS Displays Bitmaps
Displaying Bitmaps from a Bitmap Family
Summary of Bitmap Support
10 Modifying the UI Color List
Summary of UI Color Functions
11 Integrating with the Application Launcher
The Default Application Category
Part II: Reference
12 Bitmap Reference
Bitmap Structures and Types
Bitmap Constants
Miscellaneous Bitmap Constants
Bitmap Functions and Macros
13 Bitmapped Font Reference
Bitmapped Font Structures and Types
Bitmapped Font Constants
Bitmapped Font Resources
Bitmapped Font Functions and Macros
14 Category Manager Reference
Category Manager Structures and Types
Category Manager Constants
Non-schema Database Category Constants
Miscellaneous Schema Database Category Constants
Category Manager Functions and Macros
15 Clipboard Reference
Clipboard Structures and Types
Clipboard Constants
Clipboard Functions and Macros
16 Control Reference
Control Structures and Types
Control Constants
Control Events
Control Functions and Macros
17 Date and Time Selection Reference
Date and Time Selection Structures and Types
Date and Time Selection Constants
Date and Time Selection Events
Date and Time Selection Functions and Macros
18 Field Reference
Field Structures and Types
Field Constants
Field Events
Field Functions and Macros
FldSendHeightChangeNotification
19 Fixed Math Reference
Fixed Math Structures and Types
Fixed Math Constants
Fixed Math Functions and Macros
20 Form Reference
Form Structures and Types
Form Constants
Form Events
Form Functions and Macros
FrmCustomResponseAlertWithFlags
Application-Defined Functions
21 Graphics Context Reference
Graphics Context Data Structures and Types
Graphics Context Constants
Graphics Context Functions
22 List Reference
List Structures and Types
List Constants
List Events
List Functions and Macros
Application-Defined Functions
23 Menu Reference
Menu Structures and Types
Menu Constants
Command Button Location Constants
Menu Events
Menu Notifications
Menu Functions and Macros
24 Phone Lookup Reference
Phone Lookup Structures and Types
Phone Lookup Constants
Phone Lookup Functions and Macros
25 Private Records Reference
Private Records Constants
Private Records Functions and Macros
26 Progress Manager Reference
Progress Manager Structures and Types
Progress Manager Constants
Progress Manager String Length Constants
Progress Manager Events
Progress Manager Functions and Macros
Application-Defined Functions
27 Rectangle Reference
Rectangle Structures and Types
Rectangle Functions and Macros
28 Resource Loading Reference
Resource Loading Functions and Macros
29 Scalable Font Reference
Scalable Font Structures and Types
Scalable Font Constants
Font Name String Length Constants
Scalable Font Functions and Macros
30 Screen Orientation Reference
Screen Orientation Constants
Screen Orientation Functions and Macros
31 Scroll Bar Reference
Scroll Bar Structures and Types
Scroll Bar Events
Scroll Bar Functions and Macros
32 Standard UI Dialogs Reference
UI Dialog Constants
UI Dialog Functions and Macros
33 Status Bar Reference
Status Bar Constants
Status Bar Functions and Macros
34 Table Reference
Table Structures and Types
Table Constants
Table Events
Table Functions and Macros
Application-Defined Functions
35 UI Color List Reference
UI Color Constants
UI Color Functions and Macros
36 Window Reference
Window Structures and Types
Window Constants
Window Events
Window Manager Notifications
Window Management Functions and Macros
WinCreateWindowWithConstraints