3.3 Window system input

3.3.1 Mouse documentation

Interactions with the mouse are made easier by mouse documentation, which allows programs to:

There are three ways of specifying mouse documentation.

(with-mouse-documentation
    ("Default mouse documentation")
  (yes-or-no-p "continue?"))

(setq *window* (make-window :width 100 :height 100 :title "Doc"))
(setq *region*
      (make-active-region
        (make-region :x 0 :y 0 :width 50 :height 50)
         :bitmap *window* :mouse-documentation
                     "Mouse has entered the active
 region"))

(defun ar-documentation (ar)
  (format nil "Mouse has entered ~A" 
    (active-region-bitmap ar)))
(setf (active-region-mouse-documentation *region*)
      #'ar-documentation)

When no other mouse documentation is specified by one of these methods, default mouse documentation appears in the who window.

For more information about active regions, see Section 3.4.3 on page 39.


The Window Tool Kit - 9 SEP 1996

Generated with Harlequin WebMaker