About This Tutorial
What You Need to Know
Notation
Typographic Conventions
Naming Conventions
The ViewFile Application: Building a Simple File Browser
Step 1: Building the Browser Window
Choosing the Right Gadgets for your Application
Choosing the Container
Implementing the Main Window
Creating the Application
Previewing the Application
Step 2: Browsing Files
Creating the File Browser
Creating the Gadget Items
Instantiating the File Viewer
Previewing the Application
Step 3: Adding Docking Bars
Preparing the Main Window for Docking
Creating the Docking Toolbar
Creating the Docking Menu Bar
Integrating Changes into the Application
Previewing the Application
Step 4: Adding View Frames
Choosing the Desktop View
Creating View Frames
Adding New Menus and Items to View Frames
Previewing the Application
Customizing Gadgets
Step 1: Extending a Gadget by Changing its Graphical Appearance
Creating a Subclass of an Existing Gadget
Adding an API to the New Gadget Class
Modifying How the New Gadget is Drawn
Testing the New Gadget Class
Step 2: Extending a Gadget by Changing its Behavior
Choosing the Right Way to Modify the Behavior of an Existing Gadget
Creating a Generic Interactor
Creating a Dedicated Interactor
Testing the New Interactor
Step 3: Creating a Composite Gadget
Creating a Gadget Composed of Other Gadgets
Handling Keyboard Focus in a Gadget
Handling Events in a Gadget
Adding Callbacks to a Gadget
Testing the Composite Gadget
About This Tutorial
Step 3: Creating a Composite Gadget