The Photon Programmer's Guide is intended for developers of
Photon applications.
It describes how to create applications and the widgets that make up their
user interfaces, with and without using the Photon Application Builder
(PhAB).
 |
If you're familiar with earlier versions of Photon, you should read:
to find out how Photon and its widgets have changed in this release. |
This table may help you find what you need in this book:
| For information about:
|
See: |
| Photon, widgets, and PhAB
|
Introduction |
| Getting started with PhAB
|
Tutorials |
| PhAB's user interface
|
PhAB's Environment |
| Creating, opening, and saving applications in PhAB
|
Working with Applications |
| PhAB modules, such as windows, dialogs, and menus
|
Working with Modules |
| Adding, deleting, and modifying widgets in PhAB
|
Creating Widgets in PhAB |
| Initializing a widget's resources and callbacks
|
Editing Resources and Callbacks in PhAB |
| Setting the sizes of a widget and its children
|
Geometry Management |
| Getting PhAB to generate code
|
Generating, Compiling, and Running Code |
| Editing code generated by PhAB
|
Working with Code |
| Getting and setting widget resources
|
Manipulating Resources in Application Code |
| Adding or modifying widgets "on the fly" at runtime
|
Managing Widgets in Application Code |
| Building special areas into a widget
|
Control Surfaces |
| Using internal links to refer to PhAB modules
|
Accessing PhAB Modules from Code |
| Developing a multilingual application
|
International Language Support |
| Adding help information to your application
|
Context-Sensitive Help |
| Communicating with a Photon application
|
Interprocess Communication |
| Threads, work procedures, and background processing
|
Parallel Operations |
| Using PtRaw and Photon's low-level drawing routines
|
Raw Drawing and Animation |
| Photon's fonts
|
Fonts |
| Printing in a Photon application
|
Printing |
| Transferring data from one widget or application to another
|
Drag and Drop |
| Photon's regions
|
Regions |
| Interaction between applications, users, and the Photon server
|
Events |
| Working with windows and modal dialogs
|
Window Management |
| Developing applications "by hand" without PhAB
|
Programming Photon without PhAB |
| Photon's implementation
|
Photon Architecture |
| PhAB's widget icons
|
Widgets at a Glance |
| Handling international characters
|
Unicode Multilingual Support |
| Building an embedded system
|
Photon in Embedded Systems |
| Differences between the Windows and native QNX Neutrino versions of PhAB
|
Using PhAB under Microsoft Windows |
| Photon terminology
|
Glossary |
- The PhAB's Environment -- PhAB's interface has changed, including an updated menu and simplified toolbar.
- The Geometry Management chapter now describes how to use layouts to manage widget placement.
- The directory structure for PhAB projects has changed, and is described in How application files are organized.
- The Generating, Compiling and Running Code chapter now describes how you can Manage targets.
- The Raw Drawing and Animation chapter now describes how you can use layers.
- The Raw Drawing and Animation chapter also describes how you can use the OpenGL API with the new QNXGL OpenGL-compatible API.
- The Fonts chapter is updated with information about the new font library.
- The Photon in Embedded Systems appendix has a new example of creating a floppy containing Photon and some applications, and is updated with new font library information pertinent to embedded systems.
- Listed the supported platforms; see
"Versions and platforms"
in the Introduction.
- The Interprocess Communication chapter has a better description of how
to use Photon
connections.
- There's a new section,
"Layers,"
in the Raw Drawing and Animation chapter.
- Added a description of the
PHINDOWSOPTS
environment variable to the Using PhAB under Microsoft Windows appendix.
- The libraries in /usr/photon/lib are provided for runtime
compatibility with Photon for QNX Neutrino 6.0 (x86 only).
The current libraries are in /usr/lib.
For more information about the libraries, see
"Photon libraries"
in the Introduction.
- Corrected the call to ionotify() in
"Sending the pulse message to the deliverer"
in the Interprocess Communication chapter.
- The instructions for printing a
PtMultiText
widget have been corrected.
- The order of the options to the on command have been corrected
in
"Putting it all together"
in the Photon in Embedded Systems appendix.
- If you want to use a graphical debugger when developing in Windows,
use the IDE that's part of the QNX Momentics Professional Edition.
This section doesn't try to describe all the changes to PhAB's
user interface; most you'll discover by trying it yourself or by
scanning this manual.
Instead, this section lists only the major changes.
The changes are listed below by chapter:
- The geometry of a widget has changed slightly; it now includes the
widget's border.
For more information, see
"Widget geometry."
- You no longer need to press Enter after giving an instance
name to a widget.
- It's no longer possible to override the standard Photon mainloop function.
- PtWindow
widgets (which are used to instantiate
Window modules)
no longer include an icon resource.
You must now use PhAB to associate an icon with the window.
- You can no longer create "other" modules (file
selectors or messages) in PhAB, although they're still supported
for existing applications.
Instead of the file selector, use one of:
Instead of the message module, use one of:
For more information, see the Photon
Library Reference.
- You can now create templates, or
customized widgets, to use as the basis when creating other widgets.
New sections:
New sections:
Other changes:
- When setting string resources, the fourth argument to
PtSetArg() is the number of bytes to copy; if it's 0,
strlen() is used to determine the length of the string.
- Changes to the widget's state may invalidate the pointers returned
by PtGetResources(); use them promptly.
New sections:
- The PxHelp* functions are now named
PtHelp* and are in the main Photon library,
ph.
New sections:
- Connections -- the best
method of IPC for Photon applications.
Other changes:
New sections:
New sections:
Other changes:
- If you use
PxLoadImage()
to load an transparent image, set PX_TRANSPARENT in the
flags member of the PxMethods_t structure.
If you do this, the function automatically makes the image transparent;
you don't need to create a transparency mask.
See
"Transparency in images."
New chapter.
The entire API has been made simpler.
Applications that call the old routines should still work, but you should
reread this chapter.
New chapter.
New sections:
Copyright
© QNX Software Systems Ltd. 2005. All rights reserved.