[CM] mouse-drag-hook in FTH?

Michael Scholz scholz-micha at gmx.de
Tue Mar 27 16:09:15 PDT 2007


Hi, Charles!  The local variable AXIS isn't part of mouse-drag-hook.
You can change the example like this:

mouse-drag-hook lambda: <{ snd chn button state x y -- }>
  $" x: %s y: %s" '( x y ) string-format snd #f report-in-minibuffer 
; add-hook!

Then `#t set-lisp-graph?' and you see in the minibuffer what you
expect (I hope).  X and Y are floats, I think.  You can change the
format string to $" x: %.4f y: %.4f" or what ever.

Mike




More information about the Cmdist mailing list