If not in the application window 78, the user activity is otherwise handled, for example to close the application program 29 if the ???X??? box in the upper right corner is tapped and so on, events which are not particularly relevant to the present invention and is not described herein. [0100]FIG. 19 represents the detection and handling of the various pen events in the application window 78 while