For an overview of the changes to the software and docs, see "What's new in Photon 1.14 (as of June 01, 2000)." |
The Building Custom Widgets manual accompanies the Photon Developer's Toolkit and is intended for Photon programmers who want to create custom widgets. This manual contains everything you need to know about building your own Photon widgets. Sample code is used throughout this manual to demonstrate new concepts.
When you want to: | Go to: |
---|---|
Learn about widget concepts, attributes, and behavior | Overview |
Initialize a widget class, set up a widget instance structure, or set application resources | Life Cycle of a Widget |
Define a widget class, its resources, methods, or actions | Anatomy of a Widget |
Choose a widget superclass to base your custom widget on | Using Widget Superclasses |
Customize a list widget | Creating a List Widget |
Customize a tree widget | Creating a Tree Widget |
Add a custom widget to the PhAB widget palette | Binding Widgets into PhAB |
Manage widgets using the supplied convenience functions | Widget Building Library API |
Read widget-building tips | Miscellaneous Widget-Building Tips |
Look up Photon terms | Glossary |
As discussed in "Container widget anatomy," you can enable or disable all the container's child-constraint methods at once by setting or clearing Pt_IGNORE_CONSTRAINTS.
The section on the Defaults method for Compound widgets discusses setting the Pt_ARG_DATA resource. Your custom widget shouldn't set its own Pt_ARG_DATA resource because this resource is used internally by the Photon libraries. It is safe to set it in your widget's subordinate children.
The discussion of the Draw method now includes a section on using the Pg library safely.
PtBasic's Pt_ARG_BASIC_FLAGS resource isn't used and has been removed from the discussion of PtBasic.
PtGenList's Pt_ARG_SCROLLBAR resource has been deprecated.
The following prototypes have changed: