IRIS ViewKit™ Programmer's Guide

Document Number: 007-2124-003

Front Matter

| List of Figures | List of Examples | List of Tables |


Table of Contents

Introduction
What This Guide Contains
What You Should Know Before Reading This Guide
Conventions Used in This Guide

1. Overview of ViewKit
Major ViewKit Elements
Mixing ViewKit and Standard X and IRIS IM Functions
Compiling and Linking ViewKit Programs
Getting Started

2. Components
Definition of a Component
The VkComponent Class
Component Resource Support
ViewKit Callback Support
Deriving Subclasses to Create New Components

3. The ViewKit Application Class
Overview of the VkApp Class
The VkApp Constructor
Running ViewKit Applications
ViewKit Event Handling
Customizing Event Handling
Quitting ViewKit Applications
Managing Top-Level Windows
Setting Application Cursors
Supporting Busy States
Maintaining Product and Version Information
Application Data Access Functions
Deriving Classes from VkApp

4. ViewKit Windows
Overview of ViewKit Window Support
Window Class Constructors
Window Class Destructors
Creating the Window Interface
Manipulating Windows
Window Data Access Functions
Window Manager Interface
Menu Bar Support
Deriving Window Subclasses
QuickHelp

5. Creating Menus With ViewKit
Overview of ViewKit Menu Support
The ViewKit Menu Item Classes
The ViewKit Menu Base Class
Using ViewKit Menu Subclasses
Pulldown Menus in the Overlay Planes

6. ViewKit Undo Management and Command Classes
Undo Management
Command Classes

7. Using Dialogs in ViewKit
Overview of ViewKit Dialog Management
ViewKit Dialog Class Overview
The ViewKit Dialog Base Class
Using the ViewKit Dialog Subclasses

8. Preference Dialogs
Overview of ViewKit Preference Dialogs
The ViewKit Preference Item Base Class
The ViewKit Preference Item Classes
The ViewKit Preference Dialog Class

9. The ViewKit Graph Component
Overview of ViewKit Graphs
The ViewKit Node Class
The ViewKit Graph Class

10. Miscellaneous ViewKit Display Classes
Double Buffer Constructor and Destructor
Drawing in the Double Buffer Component
Switching Buffers in the Double Buffer Component
Handling Double Buffer Component Resize Requests
Tick Marks for Scales
Management Classes for Controlling Component and Widget Display Characteristics

11. Miscellaneous ViewKit Data Input Classes
The Check Box Component
The Radio Check Box Component
The Tab Panel Component
The Text Completion Field Component
The Repeating Button Component
Management Classes for Controlling Component and Widget Operation

A. ViewKit Interprocess Message Facility
Review of ToolTalk Concepts
Overview of ViewKit's ToolTalk Support
Establishing a Connection to the ToolTalk Service
Sending and Receiving ToolTalk Messages
Supporting Messaging in Application Windows
Supporting Messaging in Components
Registering Services for Autostart
Troubleshooting Checklist

B. Contributed ViewKit Classes
The ViewKit Meter Component
The ViewKit Pie Chart Component
The ViewKit Outline Component
VkOutlineASB

C. Using a Help System With ViewKit
User Interfaces to the Help System in a ViewKit Application
ViewKit's Programmatic Interface to a Help Library
ViewKit Help
ViewKit Support for Building Help

Glossary

Index
“Adding a Window Interface to a Direct Instantiation of a ViewKit Window Class”