Programming Guide: User Events

# Programming Guide

# User Events

This chapter discuss the OpenDoc programming interface in detail. This chapter describes the OpenDoc event-handling mechanism and discusses how your part editor handles user events to activate itself and to manipulate its user interface.

It is by handling user events that your part editor interacts with the user and cooperates with the user in constructing the compound documents that contain your parts.

OpenDoc distinguishes user events from semantic events, the messages related to the OpenDoc scripting extension, although user events can be converted into semantic events. Semantic events are discussed in "Direct Scripting".

Before reading this chapter, you should be familiar with the concepts presented in "Introduction" and "Development Overview". For additional concepts related to your part editor's run-time environment, see "OpenDoc Run-Time Features".

This chapter starts with a discussion of what user events are, and then shows how your part can

- Handle mouse events to activate itself
- Transfer various types of focus to and from itself
- Handle display-related events, for purposes such as hit-testing and scrolling

[ Top | Previous | Next | Contents | Index | Documentation Homepage ]