List of Examples
| Table of Contents | List of Figures | List of Examples | List of Tables |
- Example 1-1. The Simplest ViewKit Program: hello.c++
- Example 2-1. Component Constructor
- Example 2-2. Freeing Space in a Component Destructor
- Example 2-3. Component Constructor With Xt Callbacks
- Example 2-4. Initializing a Data Member From the Resource Database
- Example 2-5. Setting a Component's Default Resource Values
- Example 2-6. Using the Predefined deleteCallback ViewKit Callback
- Example 2-7. Simple User-Defined Component
- Example 2-8. Using a Component Directly
- Example 2-9. Subclassing a Component
- Example 2-10. Manipulating a List of Strings Using the VkNameList Class
- Example 3-1. Typical Use of the VkApp Class in a ViewKit Program
- Example 3-2. Creating an Animated Busy Cursor
- Example 3-3. Using Busy States in a ViewKit Application
- Example 3-4. Animating the Busy Cursor
- Example 3-5. Temporarily Installing an Interruptible Busy Dialog
- Example 3-6. Deriving a Subclass From VkApp
- Example 4-1. Creating a Window Interface in the Class Constructor
- Example 4-2. Using a Component as a Window's View
- Example 4-3. Creating a Window's Interface in the setUpInterface() Function
- Example 4-4. Adding a View to a Direct Instantiation of a ViewKit Window Class
- Example 4-5. Setting Window and Icon Titles Using Resource Values
- Example 4-6. Creating a Window Subclass
- Example 5-1. Providing Default Client Data When Using Static Menu Descriptions
- Example 5-2. Creating a Menu Bar Using a Static Description
- Example 5-3. Creating a Menu Bar Dynamically
- Example 5-4. Manipulating Menu Items
- Example 5-5. Using a VkRadioSubMenu Object
- Example 5-6. Using a VkOptionMenu Object
- Example 5-7. Using a VKPopupMenu Object
- Example 6-1. Adding a Non-Menu Item Directly to the Undo Stack
- Example 6-2. Using the Undo Manager
- Example 7-1. Posting a Dialog
- Example 7-2. Posting an Information Dialog
- Example 7-3. Using the Interruptible Busy Dialog
- Example 7-4. Using the Progress Dialog
- Example 7-5. Extracting the Text String From a Prompt Dialog
- Example 7-6. Extracting the Text String From a File Selection Dialog
- Example 8-1. Creating a ViewKit Preference Dialog
- Example 8-2. Setting Default Resource Values for Preference Items
- Example 8-3. Declaring Preference Items Publicly Accessible
- Example 9-1. Putting a Single Widget in a Non-default Visual Using VkVisual
- Example 9-2. Creating a GC of the Right Depth
- Example 10-1. Registering an XPM to GIF89 Converter
- Example 10-2. Data and File Ownership Changes While Copying Filenames
- Example 10-3. Data and File Ownership Changes While Pasting Filenames
- Example 10-4. Data and File Ownership Changes While Copying Normal Data
- Example 10-5. Data and File Ownership Changes While Pasting Normal Data
- Example 10-6. Data and File Ownership Changes While Dragging Filename Data
- Example 10-7. Data and File Ownership Changes While Accepting Filename Data
- Example 10-8. Data and File Ownership Changes While Dragging Normal Data
- Example 10-9. Data and File Ownership Changes While Accepting Normal Data
- Example 10-10. Data and File Ownership Changes While Accepting _SGI_ICON Data
- Example 12-1. Creating a Graph Using VkGraph
- Example 14-1. Code to Create Sample Check Box
- Example 14-2. Code to Create Sample Radio Box
- Example 15-1. Using VkRunOnce
- Example 15-2. Using VkRunOnce2